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)

Parameters

ButtonSelected
Boolean value indicating the pan mode.  TRUE indicates panning is enabled, and the Pan button in the Toolbar is displayed as selected; FALSE indicates panning is disabled, and the Pan button in the Toolbar is displayed as unselected.

Remarks

Panning is only applicable when the chart has been zoomed in.

Example

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++]

See Also

Methods