API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > OdDbTable::setCellStyle Method
OdDbTable::setCellStyle Method
Syntax
C++
void setCellStyle(OdInt32 row, OdInt32 col, const OdString& sCellStyle);
Parameters 
Description 
OdInt32 row 
[in] Row index of the cell.  
OdInt32 col 
[in] Column index of the cell.  
const OdString& sCellStyle 
[in] Cell style. 

Sets the cell style. Use a valid row index and pass the column index '-1' to set the style for the row. Use a valid column index and pass the row index '-1' to set the style for the column. 

 

Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the table size.

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