XYDiagram2D.ScrollAxisYTo(Double) Method

Scrolls the Y-axis to the specified position.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public void ScrollAxisYTo(
    double yPosition
)
Public Sub ScrollAxisYTo(
    yPosition As Double
)

Parameters

Name Type Description
yPosition Double

A Double value that specifies the position to which to scroll.

Remarks

The following code scrolls a diagram to the position passed as a parameter:

XYDiagram2D diagram = (XYDiagram2D)chart.Diagram;
diagram.ScrollAxisYTo(150);

To verify whether it is possible to scroll the Y-axis, call the XYDiagram2D.CanScrollAxisYTo method.

See Also