Defines the cell text alignment.
Deprecated - Provided for compatibility with earlier versions only - Use Cell.TextHAlign instead
Get
| C# | SftBoxAlignConstants Align = object.TextAlign; |
| VB.NET | Align = object.TextAlign As SftBoxAlignConstants |
| C++ | enum SftBoxAlignConstants Align = object->TextAlign; enum SftBoxAlignConstants Align = object->GetTextAlign(); |
| C | HRESULT object->get_TextAlign(enum SftBoxAlignConstants* Align); |
| VB | Align = object.TextAlign As SftBoxAlignConstants |
Put
| C# | SftBoxAlignConstants object.TextAlign = Align; |
| VB.NET | object.TextAlign = Align As SftBoxAlignConstants |
| C++ | enum SftBoxAlignConstants object->TextAlign = Align; void object->PutTextAlign(enum SftBoxAlignConstants Align); |
| C | HRESULT object->put_TextAlign(enum SftBoxAlignConstants Align); |
| VB | object.TextAlign = Align As SftBoxAlignConstants |
object
Align
Defines the cell text alignment.
| Align | Value | Description |
|---|---|---|
| constSftBoxLeft | 0 | The cell text is left aligned. |
| constSftBoxCenter | 1 | The cell text is centered. |
| constSftBoxRight | 2 | The cell text is right aligned. |
Deprecated - Provided for compatibility with earlier versions only - Use Cell.TextHAlign instead
The TextAlign property defines the cell text alignment.
The Cell.TextVAlign property is used to define the vertical alignment of the text in this cell.
The Cell.TextHAlign property determines the position of the cell text and graphic, defined using the Cell.Text and Cell.Image properties. It overrides the column's default alignment defined using the Column.CellHAlign property.
See Also SftBoxCell Object | Object Hierarchy