Skip to main content

TdxVisualRefinements.Padding Property

Specifies additional cell padding for container controls and standalone editors.

Declaration

class property Padding: TdxPadding read; write;

Property Value

Type Description
TdxPadding

Padding size adjustments at 96 DPI.

Remarks

Extra cell and header paddings complement lightweight borders in Light Style.

VCL Express Library: Light Style in Data Grid

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

Each container control has default cell paddings that you can adjust.

The Default Cell Padding

The following code example adds 5 pixels to all cell padding dimensions:

  TdxVisualRefinements.Padding := Rect(5, 5, 5, 5);

The Custom Cell Padding

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.

See Also