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

Sets a field ID to the zero 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–2021. Open Design Alliance. All rights reserved.