HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

TextAlignVert Property, SftButton Object

Defines the vertical alignment of the text.

Syntax

Get

VB.NETAlign = object.TextAlignVert As SftButtonAlignVertConstants
VBAlign = object.TextAlignVert As SftButtonAlignVertConstants
C#.NETSftButtonAlignVertConstants Align = object.TextAlignVert;
VC++enum SftButtonAlignVertConstants Align = object->TextAlignVert;
enum SftButtonAlignVertConstants Align = object->GetTextAlignVert();
CHRESULT object->get_TextAlignVert(enum SftButtonAlignVertConstants* Align);

Put

VB.NETobject.TextAlignVert = Align As SftButtonAlignVertConstants
VBobject.TextAlignVert = Align As SftButtonAlignVertConstants
C#.NETSftButtonAlignVertConstants object.TextAlignVert = Align;
VC++enum SftButtonAlignVertConstants object->TextAlignVert = Align;
void object->PutTextAlignVert(enum SftButtonAlignVertConstants Align);
CHRESULT object->put_TextAlignVert(enum SftButtonAlignVertConstants Align);

object

A SftButton object.

Align

Defines the vertical alignment of the text.

NameValueDescription
alignSftButtonVCenter0The text is vertically centered within the available space.
alignSftButtonTop1The text is aligned with the top of the available space.
alignSftButtonBottom2The text is aligned with the bottom of the available space.

Comments

The TextAlignVert property defines the vertical alignment of the text.

The layout of the button label and the position and alignment of the text are defined using the Orientation, TextAlignHorz and TextAlignVert properties.

For detailed information on the use of the Orientation, Image1, Image1AlignHorz, Image1AlignVert, Image2, Image2AlignHorz, Image2AlignVert, Text, TextAlignHorz, TextAlignVert properties, please see "Button Label".

See Also SftButton Object | Object Hierarchy


Last Updated 08/23/2026 - (email)
© 2026 Softel vdm, Inc.