Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XYDiagram2D.ZoomIn(Nullable<Point>) Method

Zooms in to a diagram.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public void ZoomIn(
    Point? zoomLocation
)

#Parameters

Name Type Description
zoomLocation Nullable<Point>

A Point object that specifies a new zoom location.

#Remarks

The point passed as a parameter keeps its position after zoom operation.

XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
diagram.ZoomIn(new Point(200, 200));

Before you call the ZoomIn method, ensure that the diagram’s EnableAxisXNavigation and EnableAxisYNavigation properties are enabled.

To verify whether it is possible to zoom in to a diagram, call the XYDiagram2D.CanZoomIn method.

See Also