Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

CellTextAlign Property, SftTree Object

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

Syntax

Get

VB.NETAlign = object.get_CellTextAlign(ByVal ItemIndex As Integer, ByVal ColIndex As Short) As SftTreeAlignConstants
VBAlign = object.CellTextAlign(ByVal ItemIndex As Long, ByVal ColIndex As Integer) As SftTreeAlignConstants
C#.NETSftTreeAlignConstants 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);
CHRESULT object->get_CellTextAlign(long ItemIndex, short ColIndex, enum SftTreeAlignConstants* Align);

Put

VB.NETobject.set_CellTextAlign(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Align As SftTreeAlignConstants)
VBobject.CellTextAlign(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Align As SftTreeAlignConstants
C#.NETvoid 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);
CHRESULT object->put_CellTextAlign(long ItemIndex, short ColIndex, enum SftTreeAlignConstants Align);

object

A SftTree 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 AlignmentValueDescription
alignSftTreeLeft0The cell text is left aligned.
alignSftTreeCenter1The cell text is centered in the cell.
alignSftTreeRight2The cell text is right aligned.
Vertical AlignmentValueDescription
alignSftTreeVCenter16The cell text is vertically centered.
alignSftTreeTop32The cell text is aligned with the top of the available area.
alignSftTreeBottom64The cell text is aligned with the bottom of the available area.

Comments

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.