Back to Devexpress

ChartControl.Scroll Event

windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-7e994a7a.md

latest3.6 KB
Original Source

ChartControl.Scroll Event

Occurs when an end-user scrolls the ChartControl.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
public event ChartScrollEventHandler Scroll
vb
Public Event Scroll As ChartScrollEventHandler

Event Data

The Scroll event's data class is ChartScrollEventArgs. The following properties provide information specific to this event:

PropertyDescription
AxisXGets the X-axis of the diagram point.
AxisYGets the Y-axis of the diagram point.
NewXRangeGets the new value of the AxisBase.VisualRange property for the X-axis.
NewYRangeGets the new value of the AxisBase.VisualRange property for the Y-axis.
OldXRangeGets the old value of the AxisBase.VisualRange property for the X-axis.
OldYRangeGets the old value of the AxisBase.VisualRange property for the Y-axis.
ScrollOrientationGets the scrolling orientation, i.e. along which axes scrolling is performed.
TypeGets the scrolling type, which specifies scrolling characteristics.

Remarks

Note that this event is raised for 2D Charts only. In 3D Charts, the similar ChartControl.Scroll3D event is raised.

Note

In the Scroll event handler, you cannot change the layout of a chart. For example, modifying the ChartControl.Series or Series.Points collection in this event may affect the axis range.

See Also

Zoom

ChartControl Class

ChartControl Members

DevExpress.XtraCharts Namespace