Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

CellTextAlign Property, VirtualItem Object

Defines the position of the text displayed in the item's cell.

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Cell.TextHAlign and VirtualItem.Item.Cell.TextVAlign instead

Syntax

Put

VB.NETobject.CellTextAlign(ByVal ColIndex As Short) = Align As SftTreeAlignConstants
VBobject.CellTextAlign(ByVal ColIndex As Integer) = Align As SftTreeAlignConstants
C#.NETvoid object.set_CellTextAlign(short ColIndex, SftTreeAlignConstants Align);
VC++enum SftTreeAlignConstants object->CellTextAlign[short ColIndex] = Align;
void object->PutCellTextAlign(short ColIndex, enum SftTreeAlignConstants Align);
CHRESULT object->put_CellTextAlign(short ColIndex, enum SftTreeAlignConstants Align);

object

A VirtualItem object.

ColIndex

The zero-based column number. The combination of ColIndex and the VirtualItem event's RowIndex parameter 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 VirtualItem.Item.Cell.TextHAlign and VirtualItem.Item.Cell.TextVAlign instead

The CellTextAlign property defines the position of the text displayed in the item's cell.

The VirtualItem.CellTextAlign property is used while handling a VirtualItem event to define the position of the text for the cell described by ColIndex and the VirtualItem event's RowIndex parameter.

See Also VirtualItem Object | Object Hierarchy


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