From RAD Studio API Documentation
Jump to: navigation, search


property Padding: TBounds read GetPadding write SetPadding;


__property Padding;


Type Visibility Source Unit Parent
property published
FMX.Colors TColorPicker


Aligns the component to the padding points of other components.

FMX.Colors.TColorPicker.Padding inherits from FMX.Controls.TControl.Padding. All content below this line refers to FMX.Controls.TControl.Padding.

Aligns the component to the padding points of other components.

The Padding of a control specifies how close, in pixels, the control's children can come to each of its edges (top, left, bottom, right). Padding adds space to the inner side of the control.

The control's children are repositioned and resized, if necessary, to maintain the Padding.

If the Padding control has zero values, RAD Studio uses the default values (Left=4, Top=4, Right=4, Bottom=4). You can also set your own Padding values. It only applies to the IDE control's guidelines, when you are dragging control. But if you use Align=Client (for example), it will use the specified values in Padding.

The following image shows how Padding and Margins properties affect alignment, position, and size of controls.

Margins Padding Control.png

Note: Padding constraints do not work for TScrollBox, TListBox, TTreeView, and TGrid based controls.

See Also