API Reference > OdDb Classes > OdDbTableStyle Class > OdDbTableStyle Methods > setAlignment Method > OdDbTableStyle::setAlignment Method (OdDb::CellAlignment, int)
OdDbTableStyle::setAlignment Method (OdDb::CellAlignment, int)
Syntax
C++
virtual void setAlignment(OdDb::CellAlignment alignment, int rowTypes = OdDb::kAllRows);
Parameters 
Description 
OdDb::CellAlignment alignment 
[in] Alignment. 
int rowTypes = OdDb::kAllRows 
[in] Row types.  

Sets the cell alignment for the specified row types in this TableStyle object (DXF 170). 

 

rowTypes must be a combination of one or more of the following: 

 

Name 
Value 
OdDb::kTitleRow 
OdDb::kHeaderRow 
OdDb::kDataRow 

 

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