API Reference > OdDb Classes > OdDbFormattedTableData Class > OdDbFormattedTableData Methods > setFieldId Method > OdDbFormattedTableData::setFieldId Method (OdInt32, OdInt32, OdUInt32, OdDbObjectId&, OdDb::CellOption)
OdDbFormattedTableData::setFieldId Method (OdInt32, OdInt32, OdUInt32, OdDbObjectId&, OdDb::CellOption)
Syntax
C++
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId& idField, OdDb::CellOption nFlag);
Parameters 
Description 
OdInt32 nRow 
[in] Row index of the cell.  
OdInt32 nCol 
[in] Column index of the cell.  
OdUInt32 nContent 
[in] Number of content.  
const OdDbObjectId& idField 
[in] Field ID.  
OdDb::CellOption nFlag 
[in] Cell option. 

Sets a field ID to the specified cell content. 

 

Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size. Method generates the eIsWriteProtected when content is not editable (!isContentEditable()).

Copyright © 2002–2020. Open Design Alliance. All rights reserved.