API Reference > OdDb Classes > OdDbFormattedTableData Class > OdDbFormattedTableData Methods > OdDbFormattedTableData::setContentLayout Method
OdDbFormattedTableData::setContentLayout Method
Syntax
C++
virtual void setContentLayout(OdInt32 nRow, OdInt32 nCol, OdDb::CellContentLayout nLayout);
Parameters 
Description 
OdInt32 nRow 
[in] Row index of the cell.  
OdInt32 nCol 
[in] Column index of the cell.  
OdDb::CellContentLayout nLayout 
[in] Content layout. 

Sets the content layout for the specified cell. 

 

Content layout should take one of following values: 

 

Name 
Value 
kCellContentLayoutFlow 
0x1 
kCellContentLayoutStackedHorizontal 
0x2 
kCellContentLayoutStackedVertical 
0x4 

 

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–2020. Open Design Alliance. All rights reserved.