All docs
V21.2
21.2
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.

Range.SideMarginSizeUnit Property

Specifies the measurement unit for diagram side margins.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

Declaration

public SideMarginSizeUnit SideMarginSizeUnit { get; set; }

Property Value

Type Description
SideMarginSizeUnit

A SideMarginSizeUnit enumeration value.

Available values:

Name Description
AxisUnit

Side margins are specified in axis measurement units.

AxisRangePercentage

Side margins are specified as a percentage.

Remarks

Use the SideMarginSizeUnit property to specify measurement units for the Range.SideMarginsValue, Range.StartSideMargin, and Range.EndSideMargin properties’ values.

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