Vcl.Controls.TPadding
Delphi
TPadding = class(TMargins)
C++
class PASCALIMPLEMENTATION TPadding : public TMargins
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
Description
Contains the padding for the control.
TPadding is used in the Padding property of TControl and its descendants. It specifies the padding of a control.
Padding adds space along the edge the control. Child controls that are aligned to the parent are positioned inside the control according to this spacing. Padding does not affect child controls which are not aligned to the parent control, nor does it affect the size of the ClientArea.
Padding is the opposite of Margins. Margins affects the positioning of the control itself inside the parent control, but Padding affects how all aligned child controls are positioned with respect to the parent control.