API Reference > OdDb Classes > OdDbFormattedTableData Class > OdDbFormattedTableData Methods > setTextStyle Method > OdDbFormattedTableData::setTextStyle Method (OdInt32, OdInt32, OdInt32, OdDbObjectId&)
OdDbFormattedTableData::setTextStyle Method (OdInt32, OdInt32, OdInt32, OdDbObjectId&)
Syntax
C++
virtual void setTextStyle(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, const OdDbObjectId& idTextStyle);
Parameters 
Description 
OdInt32 nRow 
[in] Row index of the cell.  
OdInt32 nCol 
[in] Column index of the cell.  
OdInt32 nContent 
[in] Content index.  
const OdDbObjectId& idTextStyle 
[in] Text style object ID. 

Sets the text style for the specified content of a cell. 

 

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 format is not editable (!isFormatEditable()).

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