XYDiagram2D.CanZoomOut() Method

Checks whether it is possible to zoom out of a diagram.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll

Declaration

public bool CanZoomOut()
Public Function CanZoomOut As Boolean

Returns

Type Description
Boolean

true if it is allowed to zoom out; otherwise, false.

Remarks

The following code changes the cursor's appearance when the chart is displayed at the minimum zoom level:

private void chartControl1_QueryChartCursor(object sender, QueryChartCursorEventArgs e) {
    ChartControl chart = (ChartControl)sender;
        XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
            if (!diagram.CanZoomOut()) {
                e.Cursor = Cursors.None;
                e.CursorImage = new BitmapImage(new Uri(@"/CustomCursor;component/mycursor.png", UriKind.Relative));
    }
}

To zoom out of a diagram, use the XYDiagram2D.ZoomOut method.

See Also