AlignRight

concerns

 

 

Type

Read/Write

HAlignment

Yes/Yes

 

 

The AlignRight property is required for dynamic positioning of the control. It defines the behavior of the right edge of the control when the form content is changed.

 

The behavior depends on the setting of the property AlignTypeRight.

 

HAlignment

Description

0 – AlignHorLeft

The right edge of the control is pinned to the left edge of the object, defined by AlignTypeRight. This means that the distance between the left edge of the reference object and the right edge of the control never changes, no matter what width the reference object is during runtime.

1 – AlignHorRight

The right edge of the control is pinned to the right edge of the object, defined by AlignTypeRight. This means that the distance between the right edge of the reference object and the right edge of the control never changes, no matter what width the reference object is during runtime.

2 – AlignHorProp

The right edge of the control is aligned proportionally to the width of the reference object, defined by AlignTypeBottom. This means that the proportional distance of the bottom left of the control to both the left and right edges of the parent object is remaining.

3 – AlignHorMiddle

The right edge of the control is pinned to the horizontal center of the parent object. This means that the distance between the horizontal center of the object, defined by AlignTypeLeft, and the left edge of the control never changes. If the width of the reference object is changed during runtime, the left edge of the control automatically moves relative to the horizontal center of the reference object.

4 – AlignHorPropForm

The right edge of the control is aligned proportionally to the width of the window form. this means that the proportional distance of the left edge of the control remains to both the left and right edges of the window form.