|
|
|
SftMaskCaption.Alignment Property |
Defines the caption's alignment.
Syntax
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;
|
||
C |
HRESULT object->get_Alignment(enum SftMaskAlignConstants* Align); |
||
Delphi |
Align := object.Alignment : TOleEnum; |
||
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;
|
||
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 |
0 |
The text is left adjusted. |
|
1 |
The text centered. |
|
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 captions 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.