Skip to main content

XYDiagram2D.ScrollVertically(Int32) Method

Scrolls a diagram by value in pixels in the vertical direction.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public void ScrollVertically(
    int dy
)

Parameters

Name Type Description
dy Int32

An integer value that specifies a shift in pixels.

Remarks

The following code scrolls the diagram by 50px vertically:

XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
diagram.ScrollVertically(50);

To verify whether it is possible to scroll a diagram vertically, call the XYDiagram2D.CanScrollVertically method.

See Also