Back to Devexpress

XYDiagram2D.ScrollHorizontally(Int32) Method

wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-dot-scrollhorizontally-x28-system-dot-int32-x29.md

latest1.7 KB
Original Source

XYDiagram2D.ScrollHorizontally(Int32) Method

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

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ScrollHorizontally(
    int dx
)
vb
Public Sub ScrollHorizontally(
    dx As Integer
)

Parameters

NameTypeDescription
dxInt32

An integer value that specifies a shift in pixels.

|

Remarks

The following code scrolls the diagram by 50px horizontally:

csharp
XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
diagram.ScrollHorizontally(50);
vb
Dim diagram As XYDiagram2D = CType(chart.Diagram, XYDiagram2D)
diagram.ScrollHorizontally(50)

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

See Also

ScrollVertically(Int32)

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace