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.BeforeZoom Event

Occurs before the chart is zoomed.

Namespace: DevExpress.XtraCharts

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

NuGet Package: DevExpress.Win.Charts

#Declaration

public event ChartBeforeZoomEventHandler BeforeZoom

#Event Data

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

Property Description
Axis Gets the axis whose visual range is changed when an end user zooms the chart.
Cancel Gets or sets the value that identifies whether the zooming should be canceled.
NewRange The new axis visual range.

#Remarks

You can use the BeforeZoom event for the XY-Diagram and Swift Plot Diagram only.

When zooming is enabled for both axes, the BeforeZoom event is raised for each axis.

See Also