HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

TextAlignHorz Property, SftButton Object

Defines the horizontal alignment of the text.

Syntax

Get

VB.NETAlign = object.TextAlignHorz As SftButtonAlignConstants
VBAlign = object.TextAlignHorz As SftButtonAlignConstants
C#.NETSftButtonAlignConstants Align = object.TextAlignHorz;
VC++enum SftButtonAlignConstants Align = object->TextAlignHorz;
enum SftButtonAlignConstants Align = object->GetTextAlignHorz();
CHRESULT object->get_TextAlignHorz(enum SftButtonAlignConstants* Align);

Put

VB.NETobject.TextAlignHorz = Align As SftButtonAlignConstants
VBobject.TextAlignHorz = Align As SftButtonAlignConstants
C#.NETSftButtonAlignConstants object.TextAlignHorz = Align;
VC++enum SftButtonAlignConstants object->TextAlignHorz = Align;
void object->PutTextAlignHorz(enum SftButtonAlignConstants Align);
CHRESULT object->put_TextAlignHorz(enum SftButtonAlignConstants Align);

object

A SftButton object.

Align

Defines the horizontal alignment of the text.

NameValueDescription
alignSftButtonCenter0The text is horizontally centered within the available space.
alignSftButtonLeft1The text is left aligned within the available space.
alignSftButtonRight2The text is right aligned within the available space.

Comments

The TextAlignHorz property defines the horizontal 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.