API Reference > OdDb Classes > OdDbFormattedTableData Class > OdDbFormattedTableData Methods > OdDbFormattedTableData::setAlignment Method
OdDbFormattedTableData::setAlignment Method
Syntax
C++
virtual void setAlignment(OdInt32 nRow, OdInt32 nCol, OdDb::CellAlignment nAlignment);
Parameters 
Description 
OdInt32 nRow 
[in] Row index of the cell.  
OdInt32 nCol 
[in] Column index of the cell.  
OdDb::CellAlignment nAlignment 
[in] Alignment. 

Sets the cell alignment for the specified cell in this table entity. 

 

Alignment must be one of the following: 

 

Name 
Value 
OdDb::kTopLeft 
OdDb::kTopCenter 
OdDb::kTopRight 
OdDb::kMiddleLeft 
OdDb::kMiddleCenter 
OdDb::kMiddleRight 
OdDb::kBottomLeft 
OdDb::kBottomCenter 
OdDb::kBottomRight 

 

Method generates the eInvalidInput exception when the alignment is out of the available range 1 to 9, when the row argument is grater than the number of rows, or when the column argument is grater than the number of columns.

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