Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbFormattedTableData::setAlignment Method
Syntax
C++
virtual void setAlignment(OdInt32 nRow, OdInt32 nCol, OdDb::CellAlignment nAlignment);

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

 

Parameters
Description
nRow
[in] Row index of the cell.
nCol
[in] Column index of the cell.
nAlignment
[in] Alignment.

Alignment must be one of the following: 

 

Name
Value
OdDb::kTopLeft
1
OdDb::kTopCenter
2
OdDb::kTopRight
3
OdDb::kMiddleLeft
4
OdDb::kMiddleCenter
5
OdDb::kMiddleRight
6
OdDb::kBottomLeft
7
OdDb::kBottomCenter
8
OdDb::kBottomRight
9

 

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