Skip to main content

TdxChartVisualElementAppearance.Margins Property

Specifies visual element margins, in pixels.

Declaration

property Margins: TcxMargin read; write;

Property Value

Type Description
TcxMargin

Stores pixel margins of a visual element.

Remarks

Use Margins and Padding properties to adjust visual element margins and paddings, respectively.

Margins.Left, Margins.Top, Margins.Right, and Margins.Bottom properties allow you to customize individual visual element margins. Alternatively, you can use the Margins.All property to adjust all margins simultaneously.

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

Margins and Scaling

Margins.Left, Margins.Top, Margins.Right, and Margins.Bottom properties specify the base visual element margins (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 Values

Different visual elements in the Chart control define different default margins.

See Also