ZoomInSelected Event

This event is generated when the user selects the Zoom in/out toolbar button (see Toolbar) and the plot area to zoom in on.   It is also generated when the user calls the SetZoomMode method with True as the parameter.   Use this event to perform operations before a zoom-in is performed, that is, before the chart is redrawn with the new zoom-in settings.

[Visual Basic]
Event ZoomInSelected()
[C#]
ZoomInSelected()
[C++]
ZoomInSelected()

Example

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
Private Sub XYChartNETCtl1_ZoomInSelected() Handles XYChartNETCtl1.ZoomInSelected
   XYChartNETCtl1.Trend.Enable = FALSE  'Disable trending after user zooms in
End Sub

[C#]
private void XYChartNETCtl1_ZoomInSelected()
{
   XYChartNETCtl1.Trend.Enable = false;  //Disable trending after user zooms in
}

[C++]
private: 
   System::Void XYChartNETCtl1_ZoomInSelected()
   {
      XYChartNETCtl1->Trend->Enable = false;  //Disable trending after user zooms in
   }

See Also

Events | ZoomInComplete | ZoomOutSelected | ZoomOutComplete | ZoomOutAllSelected | ZoomOutAllComplete