SftMask/OCX 6.5

SftMask.Alignment Property

Softel vdm, Inc.

Defines the text alignment.

Syntax       

Get

VB.NET

Align = object.Alignment  As SftMaskAlignConstants

VB

Align = object.Alignment  As SftMaskAlignConstants

C#.NET

SftMaskAlignConstants Align = object.Alignment;

VC++

enum SftMaskAlignConstants Align = object->Alignment;
enum SftMaskAlignConstants Align = object->GetAlignment();

C

HRESULT object->get_Alignment(enum SftMaskAlignConstants* Align);

Delphi

Align := object.Alignment  : TOleEnum;

Put

VB.NET

object.Alignment = Align  As SftMaskAlignConstants

VB

object.Alignment = Align  As SftMaskAlignConstants

C#.NET

SftMaskAlignConstants object.Alignment = Align;

VC++

enum SftMaskAlignConstants object->Alignment = Align;
void object->PutAlignment(enum SftMaskAlignConstants Align);

C

HRESULT object->put_Alignment(enum SftMaskAlignConstants Align);

Delphi

object.Alignment := Align  : TOleEnum;

object

A SftMask object.

Align

Defines the text alignment.

Align

Value

Description

alignSftMaskLeft 

0

The text in the edit control is left adjusted.

alignSftMaskCenter

1

The text in the edit control is left adjusted if the control has the input focus. The text is centered only if the control does not have the input focus.

alignSftMaskRight 

2

The text in the edit control is right adjusted.

Comments

The Alignment property defines the text alignment.

The Alignment property defines the horizontal text alignment of the edit control. It applies to the contents of the edit control (Text and FormattedText properties).

The caption's alignment is defined using the Caption.Alignment property.


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