Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxCell.TextHAlign Property

Defines the horizontal alignment of the text in this cell.

Syntax

Get

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

Put

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

object

A SftBoxCell object.

Style

Defines the horizontal alignment of the text in this cell.

NameValueDescription
halignSftBoxDefault-1The text is aligned as defined using the default settings for this cell's column (see Column.CellHAlign).
halignSftBoxDefaultLeft0The cell text is left aligned.
halignSftBoxDefaultCenter1The cell text is centered in the cell.
halignSftBoxDefaultRight2The 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 SftBoxCell Object | Object Hierarchy


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