From RAD Studio API Documentation
Jump to: navigation, search



TBounds = class(TPersistent)


class PASCALIMPLEMENTATION TBounds : public System::Classes::TPersistent


Type Visibility Source Unit Parent
class public
FMX.Types FMX.Types


Specifies the bounds for a control.

TBounds is used in the Margins and Padding properties of TControl and its descendants. TBounds help define the relative position between components on a form, and between the edges of the form and the component. For example, when you set the left bound for a component to 10 pixels, the component will not come closer than 10 pixels to the edge of the container, or to another component on the left edge. The number of pixels by which two components are separated is the sum of the pixels of both components.

You can define the amount of margin that should surround the component on the Top, Left, Bottom, or Right by changing the pixel value for the Margins and Padding properties in the Object Inspector.

Margins and Padding depend on the Align property. To see the effect, set the Margins property on a parent control and set the Align property for the child control to vaClient.

See Also