Alignment Property

See Also11MWLEV

Applies To

Check box9P3BU5, label3MNIZ8D, option buttonJYBO08, text boxYPYZDG.

Description

Determines the alignment of a check box, option button, or text in a control.  Read-only at run time for check box, option button, and text box.

Usage

[form.]control.Alignment[ = numericexpression ]

Setting

For a check box and option button, the Alignment property settings are:

Setting          Description

 

0                   (Default) Control aligns to the left with text on the right.

1                   Control aligns to the right with text on the left.

 

For a label and text box, the Alignment property settings are:

Setting          Description

 

0                   (Default) Text aligns to the left.

1                   Text aligns to the right.

2                   Text aligns to the center (in Microsoft Windows version 3.0, aligns to the left).

 

Remarks

You can have text appear to the right or left of option buttons and check boxes, as in the following illustration.  Notice that text always aligns to the left.

 

If the MuliLine property of a text box is False, the Alignment property is ignored.

Data Type

IntegerDOKXHY (Enumerated)


See Also

Help:

Align Property34CYZZ5

 

Programmer's Guide:

Chapter 3, "Creating and Using Controls"