Returns or sets a value that determines the alignment of the UpDown control with its buddy control.
Syntax
object.Alignment [= value]
The Alignment property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
value | A value that specifies the alignment of the UpDown control with its buddy control, as described in Settings. |
Settings
The settings for value are:
Constant | Value | Description |
cc2alignmentLeft | 0 | The UpDown control is aligned to the left of its buddy control. |
cc2alignmentRight | 1 | (Default). The UpDown control is aligned to the right of its buddy control. |
Remarks
Use the Alignment property to specify the positioning of the UpDown control next to its buddy control. By default, the UpDown control is displayed on the right side of the buddy control.
Setting the Alignment property automatically realigns the UpDown control with its buddy control. The buddy control's width is reduced by the width of the UpDown control, so that the overall width of the two controls is the same as the buddy control was alone.
Note The Alignment property ignores the Orientation property when aligning to the UpDown control.