Label.TextAlign Property (Outlook Forms Script)
Returns or sets an Integer that specifies how text is aligned in a control. Read/write.
Syntax
expression.TextAlign
expression A variable that represents a Label object.
Remarks
The settings for TextAlign are:
Value | Description |
---|---|
1 | Aligns the first character of displayed text with the left edge of the control's display or edit area (default). |
2 | Centers the text in the control's display or edit area. |
3 | Aligns the last character of displayed text with the right edge of the control's display or edit area. |
For stand-alone labels, TextAlign determines the alignment of the label's caption.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.