parentBottomOffset

Type: Integer

Availability: Read or write at any time

The parentBottomOffset property of the Control class contains the pixel offset of the bottom edge of a control from the bottom of the client area of its parent. By default, the value of this property is automatically calculated.

This value is used primarily when the parentAspect property requires the bottom offset. The value is stored persistently at design time so that the correct bottom position of the parentAspect property can be restored when the form is loaded and is therefore unaffected by whether skins are now in use, the application three-dimensional border default values have been changed, subclassed forms of different sizes in cases where the control's parent is also affected by the resize, and so on.

You can set the parentBottomOffset property value for any control and it is effectively the same as setting the top position of a control to the pixel position (that is, the value of the parent’s clientHeight property less the value of the parentBottomOffset property and the control height in pixels).

Changing the top position of the control updates the value of the parentBottomOffset property and setting the value of the parentBottomOffset property updates the top position value.

When a control is added by using the addControl method of the Form class, the values of the parentBottomOffset and parentRightOffset property values are calculated initially from the resulting size and position of the control within its parent. Setting these values before calling the addControl method has no effect.

The parentBottomOffset and parentRightOffset property values only take effect when a control is created if the control was saved using the painter or if the loadControl method of the Form class is used (or if dynamically changed via logic).