ChartControl.BeforeZoom Event

Occurs before the chart is zoomed.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.UI.dll

Declaration

public event ChartBeforeZoomEventHandler BeforeZoom
Public Event BeforeZoom As ChartBeforeZoomEventHandler

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 Series View only.

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

See Also