Skip to main content

ChartControl.BeforeZoom Event

Occurs before the chart is zoomed.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.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