SftBox/OCX 4.5

SftBoxCell.TextVAlign Property

Softel vdm, Inc.

Defines the vertical alignment of the text in this cell.

Syntax       

Get

VB.NET

Style = object.TextVAlign  As SftBoxVAlignDefaultConstants

VB

Style = object.TextVAlign  As SftBoxVAlignDefaultConstants

C#.NET

SftBoxVAlignDefaultConstants Style = object.TextVAlign;

VC++

enum SftBoxVAlignDefaultConstants Style = object->TextVAlign;
enum SftBoxVAlignDefaultConstants Style = object->GetTextVAlign();

C

HRESULT object->get_TextVAlign(enum SftBoxVAlignDefaultConstants* Style);

Delphi

Style := object.TextVAlign  : TOleEnum;

Put

VB.NET

object.TextVAlign = Style  As SftBoxVAlignDefaultConstants

VB

object.TextVAlign = Style  As SftBoxVAlignDefaultConstants

C#.NET

SftBoxVAlignDefaultConstants object.TextVAlign = Style;

VC++

enum SftBoxVAlignDefaultConstants object->TextVAlign = Style;
void object->PutTextVAlign(enum SftBoxVAlignDefaultConstants Style);

C

HRESULT object->put_TextVAlign(enum SftBoxVAlignDefaultConstants Style);

Delphi

object.TextVAlign := Style  : TOleEnum;

object

A SftBoxCell object.

Style

Defines the vertical alignment of the text in this cell.

Name

Value

Description

valignSftBoxDefault

-1

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

valignSftBoxDefaultCenter

0

The cell text is vertically centered.

valignSftBoxDefaultTop

1

The cell text is aligned with the top of the available area.

valignSftBoxDefaultBottom

2

The cell text is aligned with the bottom of the available area.

Comments

The TextVAlign property defines the vertical alignment of the text in this cell.

The Cell.TextHAlign property is used to define the horizontal alignment of the text in this cell.

The TextVAlign 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.CellVAlign property.


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