Returns or sets control over the position of the text next to (left or right) the control at run time.
Object.Alignment [ = enAlignment ]
The Alignment property syntax has the following parts:
Name |
Type |
Description |
Object |
ACheckBox |
ACheckBox control |
enAlignment |
enumACheckBoxAlignment |
An integer specifying the type of alignment |
enumACheckBoxAlignment can be one of the following:
Name |
Value |
Description |
achkLeft |
0* |
The checkmark is left-aligned; the text is right-aligned. |
achkRight |
1 |
The checkmark is right-aligned; the text is left-aligned. |
The following statement changes the ACheckBox alignment to the right of the checkmark:
chk1.Alignment=achkRight