Use this method to programmatically enable or disable the zoom mode. This method is equivalent to selecting the Zoom in/out button in the Toolbar.
[Visual Basic] Sub SetZoomMode(ButtonSelected As Boolean) [C#] void XYChartNETCtl.SetZoomMode(bool ButtonSelected) [C++] void SetZoomMode(bool)
XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
[Visual Basic] If XYChartNETCtl1.Toolbar.Buttons.ZoomInOutPressed Then XYChartNETCtl1.SetZoomMode(False) 'Disable zoom; a Refresh call is not required Else XYChartNETCtl1.SetZoomMode(True) 'Enable zoom; a Refresh call is not required End If [C#] [C++]