Skip to main content

TdxChartLegendAppearance.ItemBoxPadding Property

Specifies pixel paddings of the area occupied by legend items.

Declaration

property ItemBoxPadding: TcxMargin read; write;

Property Value

Type Description
TcxMargin

The paddings (in pixels) of the area occupied by legend items at 96 DPI.

Remarks

A legend pane layout consists of legend items and a legend title if it is visible. You can use the ItemBoxPadding property to adjust paddings of the area occupied by legend items.

ItemBoxPadding.Left, ItemBoxPadding.Top, ItemBoxPadding.Right, and ItemBoxPadding.Bottom properties allow you to customize individual paddings of the area occupied by legend items. Alternatively, you can use the ItemBoxPadding.All property to adjust all paddings simultaneously.

Refer to the TcxMargin class description for detailed information on all available options.

Item Box Paddings and Scaling

ItemBoxPadding.Left, ItemBoxPadding.Top, ItemBoxPadding.Right, and ItemBoxPadding.Bottom properties specify the base paddings (in pixels) that correspond to 96 DPI. The Chart control’s draw routines multiply these property values by the current scale factor and round the result to the nearest integer to calculate actual margins on the target screen.

Default Value

The ItemBoxPadding.All property’s default value is 5.

See Also