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.

SideMarginSizeUnit Enum

Specifies possible measurement units for diagram side margins.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[ResourceFinder(typeof(XtraChartsResFinder))]
public enum SideMarginSizeUnit
<ResourceFinder(GetType(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;

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