Skip to main content

TdxVisualRefinements.HeaderPadding Property

Specifies the header padding adjustments for container controls.

Declaration

class property HeaderPadding: TdxPadding read; write;

Property Value

Type Description
TdxPadding

Padding size adjustments at 96 DPI.

Remarks

Use the HeaderPadding property to adjust Left, Top, Right, and Bottom paddings for each header in all container controls.

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 header padding dimensions that you can adjust.

The Default Header Padding

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

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

The Custom Header Padding

To reset cell padding adjustments, you can assign the TdxPadding.Null class property value to the HeaderPadding property.

  TdxVisualRefinements.HeaderPadding := TdxPadding.Null;

Tip

If you need to reset all global visual adjustments, call the Reset procedure.

Default Value

The HeaderPadding property’s default value is TdxPadding.Null.

See Also