SftMask/OCX 6.5

SftMaskCaption.Alignment Property

Softel vdm, Inc.

Defines the caption's 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 SftMaskCaption object.

Align

Defines the horizontal alignment of the caption label (Caption.Text) within the area available for the caption.

Align

Value

Description

alignSftMaskLeft 

0

The text is left adjusted.

alignSftMaskCenter

1

The text centered.

alignSftMaskRight 

2

The text is right adjusted.

Comments

The Alignment property defines the caption's alignment.

The built-in caption can be positioned on any side of the control (see Caption.Position). The AutoSize and Caption.SizePercent properties determine the size of the caption area.

Within the defined caption area, the caption’s text is horizontally aligned using the Alignment property. Vertical alignment is defined using the VerticalAlignment property.

The caption area position and size are defined using a combination of the Caption.SizePercent or Caption.Width, Caption.Position and AutoSize properties. For a detailed description of the various combinations, please see the chapter Built-In Caption.


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