Back to Devexpress

XYDiagram2D.ZoomOut(Nullable<Point>) Method

wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-dot-zoomout-x28-system-dot-nullable-system-dot-windows-dot-point-x29.md

latest2.3 KB
Original Source

XYDiagram2D.ZoomOut(Nullable<Point>) Method

Zooms out of a diagram.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ZoomOut(
    Point? zoomLocation
)
vb
Public Sub ZoomOut(
    zoomLocation As Point?
)

Parameters

NameTypeDescription
zoomLocationNullable<Point>

A Point object that specifies a new zoom location.

|

Remarks

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

csharp
XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
diagram.ZoomOut(new Point(200, 200));
vb
Dim diagram As XYDiagram2D = CType(chart.Diagram, XYDiagram2D)
diagram.ZoomOut(New Point(200, 200))

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

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

See Also

ZoomIn(Nullable<Point>)

Zoom and Scroll in 2D XY-Charts

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace