TdxVisualRefinements.Padding Property
Specifies additional cell padding for container controls and standalone editors.
#Declaration
class property Padding: TdxPadding read; write;
#Property Value
Type | Description |
---|---|
Tdx |
Padding size adjustments at |
#Remarks
Extra cell and header paddings complement lightweight borders in Light Style.
Use the Padding
property to adjust Left, Top, Right, and Bottom paddings for each in-place editor in all container controls. If the UsePaddingForStandaloneEditors property is set to True
, the Padding
property value also affects standalone editors.
Note
All padding adjustments are specified at 96
DPI. Affected controls scale adjustments according to the current DPI.
#Code Example: Adjust Cell Padding
Each container control has default cell paddings that you can adjust.
The following code example adds 5
pixels to all cell padding dimensions:
TdxVisualRefinements.Padding := Rect(5, 5, 5, 5);
To reset cell padding adjustments, you can assign the TdxPadding.Null class property value to the Padding
property.
TdxVisualRefinements.Padding := TdxPadding.Null;
Tip
If you need to reset all global visual adjustments, call the Reset procedure.
#Default Value
The Padding
property’s default value is TdxPadding.Null.