Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

ColumnTextStyle Property, SftTree Object

Defines a column header's text style.

Deprecated - Provided for compatibility with earlier versions only - Use Header.TextHAlign and Header.TextVAlign instead

Syntax

Get

VB.NETAlign = object.get_ColumnTextStyle(ByVal ColIndex As Short) As SftTreeAlignConstants
VBAlign = object.ColumnTextStyle(ByVal ColIndex As Integer) As SftTreeAlignConstants
C#.NETSftTreeAlignConstants Align = object.get_ColumnTextStyle(short ColIndex);
VC++enum SftTreeAlignConstants Align = object->ColumnTextStyle[short ColIndex];
enum SftTreeAlignConstants Align = object->GetColumnTextStyle(short ColIndex);
CHRESULT object->get_ColumnTextStyle(short ColIndex, enum SftTreeAlignConstants* Align);

Put

VB.NETobject.set_ColumnTextStyle(ByVal ColIndex As Short, ByVal Align As SftTreeAlignConstants)
VBobject.ColumnTextStyle(ByVal ColIndex As Integer) = Align As SftTreeAlignConstants
C#.NETvoid object.set_ColumnTextStyle(short ColIndex, SftTreeAlignConstants Align);
VC++enum SftTreeAlignConstants object->ColumnTextStyle[short ColIndex] = Align;
void object->PutColumnTextStyle(short ColIndex, enum SftTreeAlignConstants Align);
CHRESULT object->put_ColumnTextStyle(short ColIndex, enum SftTreeAlignConstants Align);

object

A SftTree object.

ColIndex

The zero-based column number.

Align

Defines a column header's text style.

One value of each of the following tables can be combined and used as Align value:

Horizontal AlignmentValueDescription
alignSftTreeLeft0The text and graphic component are left aligned.
alignSftTreeCenter1The text and graphic component are centered.
alignSftTreeRight2The text and graphic component are right aligned.
Vertical AlignmentValueDescription
alignSftTreeVCenter16The text is vertically centered. If no vertical alignment value is specified, this is the default.
alignSftTreeTop32The text is aligned with the top of the available area.
alignSftTreeBottom64The text is aligned with the bottom of the available area.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Header.TextHAlign and Header.TextVAlign instead

The ColumnTextStyle property defines a column header's text style.

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 SftTree Object | Object Hierarchy


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