Back to Devexpress

XYDiagram2D.ZoomIn(Nullable<Point>) Method

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

latest2.2 KB
Original Source

XYDiagram2D.ZoomIn(Nullable<Point>) Method

Zooms in to a diagram.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ZoomIn(
    Point? zoomLocation
)
vb
Public Sub ZoomIn(
    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.ZoomIn(new Point(200, 200));
vb
Dim diagram As XYDiagram2D = CType(chart.Diagram, XYDiagram2D)
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

ZoomOut(Nullable<Point>)

Zoom and Scroll in 2D XY-Charts

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace