Axis.Range Property
OBSOLETE
This property is obsolete now. To specify a custom range, use the Axis2D.VisualRange and AxisBase.WholeRange properties instead. For more information, see the corresponding topic in the documentation.
Specifies the axis range.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
[Browsable(false)]
[Obsolete("This property is obsolete now. To specify a custom range, use the Axis2D.VisualRange and AxisBase.WholeRange properties instead. For more information, see the corresponding topic in the documentation.")]
public AxisRange Range { get; set; }
Property Value
Type | Description |
---|---|
AxisRange | An AxisRange object which contains the common range settings of the axis coordinates. |
Remarks
The Range property is used in descendants of the Axis class.
The main settings exposed by the AxisRange class allow you to limit the visible range of an axis, by specifying the minimum and maximum axis values (see the AxisRange.MinValue and AxisRange.MaxValue properties).
Example
The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Range property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.