Returns or sets a value that determines the text alignment in an object.
object.Alignment [= number]
object:Label, TextBox, Panel Ocx Object
number:iexp
For Label, TextBox, and Panel objects, the settings for number are:
| Constant | Setting | Description |
|---|---|---|
| basLeftJustify | 0 | (Default) Text is left-aligned. |
| basRightJustify | 1 | Text is right-aligned. |
| basCenter | 2 | Text is centered. |
lbl1.Alignment = basCenter
{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}