Use this method to programmatically enable or disable the pan mode. This method is equivalent to selecting the Pan button in the Toolbar.
[Visual Basic] Sub SetPanMode(ButtonSelected As Boolean) [C#] void XYChartNETCtl.SetPanMode(bool ButtonSelected) [C++] void SetPanMode(bool)
Panning is only applicable when the chart has been zoomed in.
XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
[Visual Basic] If XYChartNETCtl1.Toolbar.Buttons.PanPressed Then XYChartNETCtl1.SetPanMode(False) 'Disable panning; a Refresh call is not required Else XYChartNETCtl1.SetPanMode(True) 'Enable panning; a Refresh call is not required End If [C#] [C++]