Back to Devexpress

Range.ActualMaxValue Property

wpf-devexpress-dot-xpf-dot-charts-dot-range-abc7df53.md

latest2.6 KB
Original Source

Range.ActualMaxValue Property

Gets the actual maximum value to display on an Axes.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public object ActualMaxValue { get; }
vb
Public ReadOnly Property ActualMaxValue As Object

Property Value

TypeDescription
Object

A Object that represents the maximum value to display on an axis.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ActualMaxValue 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.

wpf-charts-create-real-time-chart/CS/RealtimeChartMVVM/MainWindow.xaml.cs#L15

csharp
AxisX2D axisX = ((XYDiagram2D)chart.Diagram).ActualAxisX;
DateTime maxRangeValue = (DateTime)axisX.ActualWholeRange.ActualMaxValue;
axisX.ActualVisualRange.SetMinMaxValues(maxRangeValue.AddSeconds(-10), maxRangeValue);

wpf-charts-create-real-time-chart/VB/RealtimeChartMVVM/MainWindow.xaml.vb#L19

vb
Dim axisX As AxisX2D = CType(Me.chart.Diagram, XYDiagram2D).ActualAxisX
Dim maxRangeValue As Date = CDate(axisX.ActualWholeRange.ActualMaxValue)
axisX.ActualVisualRange.SetMinMaxValues(maxRangeValue.AddSeconds(-10), maxRangeValue)

See Also

Range Class

Range Members

DevExpress.Xpf.Charts Namespace