All docs
V21.1
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SideMarginSizeUnit Enum

Specifies possible measurement units for diagram side margins.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.1.dll

Declaration

[ResourceFinder(typeof(XtraChartsResFinder))]
public enum SideMarginSizeUnit

Members

Name Description
AxisUnit

Side margins are specified in axis measurement units.

AxisRangePercentage

Side margins are specified as a percentage.

Related API Members

The following properties accept/return SideMarginSizeUnit values:

Library Related API Members
Cross-Platform Class Library Range.SideMarginSizeUnit
WinForms Controls RangeModel.SideMarginSizeUnit

Remarks

SideMarginSizeUnit enumerates possible values for the Range.SideMarginSizeUnit property.

Example

The following example demonstrates how to specify diagram side margins as a percentage:

XYDiagram diagram = chartControl1.Diagram as XYDiagram;
diagram.AxisX.WholeRange.SideMarginSizeUnit = SideMarginSizeUnit.AxisRangePercentage;
diagram.AxisX.WholeRange.StartSideMargin = 20;
diagram.AxisX.WholeRange.EndSideMargin = 0;
See Also