XY Chart NET 3 Control Reference > Events > ZoomOutSelected Event |
This event is generated when the user is in the Zoom in/out mode (see Toolbar) and presses on the right-mouse button over the plot area. Use this event to perform operations before a zoom-out is performed, that is, before the chart is redrawn with the new zoom-out settings.
[Visual Basic] Event ZoomOutSelected() |
[C#] ZoomOutSelected() |
[C++] ZoomOutSelected() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Private Sub XYChartNETCtl1_ZoomOutSelected() Handles XYChartNETCtl1.ZoomOutSelected XYChartNETCtl1.Profile(0).SampleStep = 2 'Display every other datapoint for Profile 0 End Sub
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. private void XYChartNETCtl1_ZoomOutSelected() { XYChartNETCtl1.get_Profile(0).SampleStep = 2; //Display every other datapoint for Profile 0 }
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. private: System::Void XYChartNETCtl1_ZoomOutSelected() { XYChartNETCtl1->get_Profile(0)->SampleStep = 2; //Display every other datapoint for Profile 0 }