Defines the horizontal alignment of the text in this column header.
Get
| C# | SftTreeHAlignConstants Style = object.TextHAlign; |
| VB.NET | Style = object.TextHAlign As SftTreeHAlignConstants |
| C++ | enum SftTreeHAlignConstants Style = object->TextHAlign; enum SftTreeHAlignConstants Style = object->GetTextHAlign(); |
| C | HRESULT object->get_TextHAlign(enum SftTreeHAlignConstants* Style); |
| VB | Style = object.TextHAlign As SftTreeHAlignConstants |
Put
| C# | SftTreeHAlignConstants object.TextHAlign = Style; |
| VB.NET | object.TextHAlign = Style As SftTreeHAlignConstants |
| C++ | enum SftTreeHAlignConstants object->TextHAlign = Style; void object->PutTextHAlign(enum SftTreeHAlignConstants Style); |
| C | HRESULT object->put_TextHAlign(enum SftTreeHAlignConstants Style); |
| VB | object.TextHAlign = Style As SftTreeHAlignConstants |
object
A SftTreeHeader object.
Style
Defines the horizontal alignment of the text in this column header.
| Name | Value | Description |
|---|---|---|
| halignSftTreeLeft | 0 | The text and graphic component are left aligned. |
| halignSftTreeCenter | 1 | The text and graphic component are centered. |
| halignSftTreeRight | 2 | The text and graphic component are right aligned. |
The TextHAlign property defines the horizontal alignment of the text in this column header.
To change the default alignment of cell text use the Column.CellHAlign and Column.CellVAlign properties instead.
The Headers.Multiline property can be used to enable multi-line column header text.
See Also SftTreeHeader Object | Object Hierarchy