|
|
|
SftMaskCaption.VerticalAlignment Property |
Defines the caption's vertical alignment.
Syntax
VB.NET |
VAlign = object.VerticalAlignment As SftMaskVerticalAlignConstants |
||
VB |
VAlign = object.VerticalAlignment As SftMaskVerticalAlignConstants |
||
C#.NET |
SftMaskVerticalAlignConstants VAlign = object.VerticalAlignment; |
||
VC++ |
enum SftMaskVerticalAlignConstants VAlign = object->VerticalAlignment;
|
||
C |
HRESULT object->get_VerticalAlignment(enum SftMaskVerticalAlignConstants* VAlign); |
||
Delphi |
VAlign := object.VerticalAlignment : TOleEnum; |
||
VB.NET |
object.VerticalAlignment = VAlign As SftMaskVerticalAlignConstants |
||
VB |
object.VerticalAlignment = VAlign As SftMaskVerticalAlignConstants |
||
C#.NET |
SftMaskVerticalAlignConstants object.VerticalAlignment = VAlign; |
||
VC++ |
enum SftMaskVerticalAlignConstants object->VerticalAlignment = VAlign;
|
||
C |
HRESULT object->put_VerticalAlignment(enum SftMaskVerticalAlignConstants VAlign); |
||
Delphi |
object.VerticalAlignment := VAlign : TOleEnum; |
object
A SftMaskCaption object.
VAlign
Defines the caption's vertical alignment.
Style |
Value |
Description |
0 |
The text is aligned with the top border of the caption area. |
|
1 |
The baseline of the captions text is vertically aligned with the baseline of the edit control text. This is typically used to align both the caption and edit control text, when the caption area is on the left or right of the edit control. The baseline is correctly aligned even if different size fonts are used (see Font and Caption.Font properties). |
|
2 |
The text is vertically centered within the top and bottom border of the caption area. |
|
3 |
The text is aligned with the bottom border of the caption area. |
Comments
The VerticalAlignment property defines the caption's vertical alignment.
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.