ChartControl.BeforeZoom Event
In This Article
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. |
New |
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