편집

다음을 통해 공유


Alignment property

Specifies the position of a control relative to its caption.

Syntax

object.Alignment [= fmAlignment ]

The Alignment property syntax has these parts:

Part Description
object Required. A valid object.
fmAlignment Optional. Caption position.

Settings

The settings for fmAlignment are:

Constant Value Description
fmAlignmentLeft 0 Places the caption to the left of the control.
fmAlignmentRight 1 Places the caption to the right of the control (default).

Remarks

The caption text for a control is left-aligned.

Note

Although the Alignment property exists on the ToggleButton, the property is disabled. You cannot set or return a value for this property on the ToggleButton.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.