All docs
V20.1
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.v20.1.dll

Declaration

public SideMarginSizeUnit SideMarginSizeUnit { get; set; }
Public Property SideMarginSizeUnit As SideMarginSizeUnit

Property Value

Type Description
SideMarginSizeUnit

A SideMarginSizeUnit enumeration value.

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;

Related API members:

Member

Description

Range.SideMarginSizeUnit

Sets the measurement unit for side margins.

Range.StartSideMargin

Specifies the left margin.

Range.EndSideMargin

Specifies the right margin.

See Also