Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChartVisualElementAppearance.Margins Property

Specifies visual element margins, in pixels.

#Declaration

Delphi
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