Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControl.Scroll Event

Occurs when an end-user scrolls the ChartControl.

Namespace: DevExpress.XtraCharts

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

NuGet Package: DevExpress.Win.Charts

#Declaration

public event ChartScrollEventHandler Scroll

#Event Data

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

Property Description
AxisX Gets the X-axis of the diagram point.
AxisY Gets the Y-axis of the diagram point.
NewAxisXRange Obsolete. Gets the new value of the AxisBase.Range property for the X-axis.
NewAxisYRange Obsolete. Gets the new value of the AxisBase.Range property for the Y-axis.
NewXRange Gets the new value of the AxisBase.VisualRange property for the X-axis.
NewYRange Gets the new value of the AxisBase.VisualRange property for the Y-axis.
OldAxisXRange Obsolete. Gets the old value of the AxisBase.Range property for the X-axis.
OldAxisYRange Obsolete. Gets the old value of the AxisBase.Range property for the Y-axis.
OldXRange Gets the old value of the AxisBase.VisualRange property for the X-axis.
OldYRange Gets the old value of the AxisBase.VisualRange property for the Y-axis.
ScrollOrientation Gets the scrolling orientation, i.e. along which axes scrolling is performed.
Type Gets 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