XYDiagram2D.ZoomIntoRectangle(Rect) Method

Zoom a diagram into a specified rectangle.

Namespace: DevExpress.Xpf.Charts

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


public void ZoomIntoRectangle(
    Rect rectangle
Public Sub ZoomIntoRectangle(
    rectangle As Rect


Name Type Description
rectangle Rect

A Rect object specifying a rectangle to zoom into.


Use the following code to zoom a diagram into a rectangle:

XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
Rect rectangle = new Rect(new Point(200, 200), new Size(350, 350));

To verify whether it is possible to zoom a diagram into a rectangle, call the XYDiagram2D.CanZoomIntoRectangle method.

See Also