SftTree/OCX 7.0

SftTreeCell.TextHAlign Property

Softel vdm, Inc.

Defines the horizontal alignment of the text in this cell.

Syntax       

Get

VB.NET

Style = object.TextHAlign  As SftTreeHAlignDefaultConstants

VB

Style = object.TextHAlign  As SftTreeHAlignDefaultConstants

C#.NET

SftTreeHAlignDefaultConstants Style = object.TextHAlign;

VC++

enum SftTreeHAlignDefaultConstants Style = object->TextHAlign;
enum SftTreeHAlignDefaultConstants Style = object->GetTextHAlign();

C

HRESULT object->get_TextHAlign(enum SftTreeHAlignDefaultConstants* Style);

Delphi

Style := object.TextHAlign  : TOleEnum;

Put

VB.NET

object.TextHAlign = Style  As SftTreeHAlignDefaultConstants

VB

object.TextHAlign = Style  As SftTreeHAlignDefaultConstants

C#.NET

SftTreeHAlignDefaultConstants object.TextHAlign = Style;

VC++

enum SftTreeHAlignDefaultConstants object->TextHAlign = Style;
void object->PutTextHAlign(enum SftTreeHAlignDefaultConstants Style);

C

HRESULT object->put_TextHAlign(enum SftTreeHAlignDefaultConstants Style);

Delphi

object.TextHAlign := Style  : TOleEnum;

object

A SftTreeCell object.

Style

Defines the horizontal alignment of the text in this cell.

Name

Value

Description

halignSftTreeDefaultLeft

-1

The text is aligned as defined using the default settings for this cell's column (see Column.CellHAlign).

halignSftTreeDefaultLeft

0

The cell text is left aligned.

halignSftTreeDefaultCenter

1

The cell text is centered in the cell.

halignSftTreeDefaultRight

2

The 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


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com