Alignment property
Specifies the position of a control relative to its caption.
object.Alignment [= fmAlignment ]
The Alignment property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
fmAlignment | Optional. Caption position. |
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). |
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.
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.