SftMask/OCX 6.5

SftMaskCaption.VerticalAlignment Property

Softel vdm, Inc.

Defines the caption's vertical alignment.

Syntax       

Get

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;
enum SftMaskVerticalAlignConstants VAlign = object->GetVerticalAlignment();

C

HRESULT object->get_VerticalAlignment(enum SftMaskVerticalAlignConstants* VAlign);

Delphi

VAlign := object.VerticalAlignment  : TOleEnum;

Put

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;
void object->PutVerticalAlignment(enum SftMaskVerticalAlignConstants 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

valignSftMaskTop 

0

The text is aligned with the top border of the caption area.

valignSftMaskBaseline 

1

The baseline of the caption’s 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).

valignSftMaskCenter

2

The text is vertically centered within the top and bottom border of the caption area.

valignSftMaskBottom 

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.


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