SetZoomMode Method

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)

Parameters

ButtonSelected
Boolean value indicating the zoom mode.  TRUE indicates zoom is enabled, and the Zoom in/out button in the Toolbar is displayed as selected; FALSE indicates zoom is disabled, and the Zoom in/out button in the Toolbar is displayed as unselected.

Example

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

See Also

Methods| SetZoomWindow