SideMarginSizeUnit Enum
Specifies possible measurement units for diagram side margins.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
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