Returns and sets the alignment of text on the button face area of the object.
Object.Alignment [ = enAlignment ]
The Alignment property syntax has the following parts:
Name |
Type |
Description |
Object |
AButton |
AButton control |
enAlignment |
enumAButtonAlignment |
An integer specifying the type of alignment on the button face area of the object. |
enumAButtonAlignment can be one of the following:
Name |
Value |
Description |
abtnLeft |
0 |
The text and picture is in the left on the inner area of the button. |
abtnRight |
1 |
The text and picture is in the right on the inner area. |
abtnCenter |
2 * |
The text and picture is centered on the inner area. |
abtnTopLeft |
3 |
The text and picture is in the top left. |
abtnTopRight |
4 |
The text and picture is in the top right. |
abtnTopCenter |
5 |
The text and picture is in the top center. |
abtnBottomLeft |
6 |
The text and picture is in the bottom left. |
abtnBottomRight |
7 |
The text and picture is in the bottom right. |
abtnBottomCenter |
8 |
The text and picture is in the bottom center. |
The following statement returns the Alignment of the AButton:
lbtn1Alignment = btn1.Alignment
The following statement sets the Alignment of the AButton to abtnLeft:
btn1.Alignment = abtnLeft