RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPadding Class

Contains the padding for the control.

Pascal
TPadding = class(TMargins);
C++
class TPadding : public TMargins;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!