Returns or sets control over the position of the text (left or right) in the object at run time.
Object.Alignment [ = enAlignment ]
The Alignment property syntax has the following parts:
Name |
Type |
Description |
Object |
AGroupBox |
AGroupBox control. |
enAlignment |
enumAGroupBoxAlignment |
An integer specifying the type of alignment. |
enumAGroupBoxAlignment can be one of the following:
Name |
Value |
Description |
agbLeft |
0* |
Text is left aligned. |
agbRight |
1 |
Text is right aligned. |
agbCenter |
2 |
Text is centered. |
The following statement changes the AGroupBox Alignment to the right:
gb1.Alignment = agbRight