Table of contents
TOC
Collapse the table of content
Expand the table of content

TextAlign Property

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Specifies how text is aligned in a control. Syntaxobject. TextAlign [= fmTextAlign ] The TextAlign property syntax has these parts:

PartDescription
objectRequired. A valid object.
fmTextAlignOptional. How text is aligned in the control.

Settings The settings for fmTextAlign are:

ConstantValueDescription
fmTextAlignLeft1Aligns the first character of displayed text with the left edge of the control's display or edit area (default).
fmTextAlignCenter2Centers the text in the control's display or edit area.
fmTextAlignRight3Aligns the last character of displayed text with the right edge of the control's display or edit area.

Remarks For a ComboBox, the TextAlign property only affects the edit region; this property has no effect on the alignment of text in the list. For stand-alone labels, TextAlign determines the alignment of the label's caption.

© 2018 Microsoft