XY Chart NET 3 Control Reference > Methods > SetPanMode Method |
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) |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. 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