Range.SideMarginSizeUnit Property
Specifies the measurement unit for diagram side margins.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
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