HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

TextHAlign Property, SftTreeCell Object

Defines the horizontal alignment of the text in this cell.

Syntax

Get

VB.NETStyle = object.TextHAlign As SftTreeHAlignDefaultConstants
VBStyle = object.TextHAlign As SftTreeHAlignDefaultConstants
C#.NETSftTreeHAlignDefaultConstants Style = object.TextHAlign;
VC++enum SftTreeHAlignDefaultConstants Style = object->TextHAlign;
enum SftTreeHAlignDefaultConstants Style = object->GetTextHAlign();
CHRESULT object->get_TextHAlign(enum SftTreeHAlignDefaultConstants* Style);

Put

VB.NETobject.TextHAlign = Style As SftTreeHAlignDefaultConstants
VBobject.TextHAlign = Style As SftTreeHAlignDefaultConstants
C#.NETSftTreeHAlignDefaultConstants object.TextHAlign = Style;
VC++enum SftTreeHAlignDefaultConstants object->TextHAlign = Style;
void object->PutTextHAlign(enum SftTreeHAlignDefaultConstants Style);
CHRESULT object->put_TextHAlign(enum SftTreeHAlignDefaultConstants Style);

object

A SftTreeCell object.

Style

Defines the horizontal alignment of the text in this cell.

NameValueDescription
halignSftTreeDefaultLeft-1The text is aligned as defined using the default settings for this cell's column (see Column.CellHAlign).
halignSftTreeDefaultLeft0The cell text is left aligned.
halignSftTreeDefaultCenter1The cell text is centered in the cell.
halignSftTreeDefaultRight2The cell text is right aligned.

Comments

The TextHAlign property defines the horizontal alignment of the text in this cell.

The Cell.TextVAlign property is used to define the vertical alignment of the text in this cell.

The TextHAlign 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 property.

See Also SftTreeCell Object | Object Hierarchy


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.