SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the position of the text displayed in an item's cell.
Deprecated - Provided for compatibility with earlier versions only - Use Cell.TextHAlign and Cell.TextVAlign instead
Get
VB.NET | Align = object.get_CellTextAlign(ByVal ItemIndex As Integer, ByVal ColIndex As Short) As SftTreeAlignConstants |
VB | Align = object.CellTextAlign(ByVal ItemIndex As Long, ByVal ColIndex As Integer) As SftTreeAlignConstants |
C#.NET | SftTreeAlignConstants Align = object.get_CellTextAlign(int ItemIndex, short ColIndex); |
VC++ | enum SftTreeAlignConstants Align = object->CellTextAlign[long ItemIndex][short ColIndex]; enum SftTreeAlignConstants Align = object->GetCellTextAlign(long ItemIndex, short ColIndex); |
C | HRESULT object->get_CellTextAlign(long ItemIndex, short ColIndex, enum SftTreeAlignConstants* Align); |
Put
VB.NET | object.set_CellTextAlign(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Align As SftTreeAlignConstants) |
VB | object.CellTextAlign(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Align As SftTreeAlignConstants |
C#.NET | void object.set_CellTextAlign(int ItemIndex, short ColIndex, SftTreeAlignConstants Align); |
VC++ | enum SftTreeAlignConstants object->CellTextAlign[long ItemIndex][short ColIndex] = Align; void object->PutCellTextAlign(long ItemIndex, short ColIndex, enum SftTreeAlignConstants Align); |
C | HRESULT object->put_CellTextAlign(long ItemIndex, short ColIndex, enum SftTreeAlignConstants Align); |
object
ItemIndex
The zero-based item index. The combination of ItemIndex and ColIndex describes an individual cell.
ColIndex
The zero-based column number. The combination of ItemIndex and ColIndex describes an individual cell.
Align
Defines the position of the text displayed in an item's cell.
One value of each of the following tables can be combined and used as Align value:
Horizontal Alignment | Value | Description |
---|---|---|
alignSftTreeLeft | 0 | The cell text is left aligned. |
alignSftTreeCenter | 1 | The cell text is centered in the cell. |
alignSftTreeRight | 2 | The cell text is right aligned. |
Vertical Alignment | Value | Description |
alignSftTreeVCenter | 16 | The cell text is vertically centered. |
alignSftTreeTop | 32 | The cell text is aligned with the top of the available area. |
alignSftTreeBottom | 64 | The cell text is aligned with the bottom of the available area. |
Deprecated - Provided for compatibility with earlier versions only - Use Cell.TextHAlign and Cell.TextVAlign instead
The CellTextAlign property defines the position of the text displayed in an item's cell.
The CellTextAlign 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 and Column.CellVAlign properties.
See Also SftTree Object | Object Hierarchy