XY Chart NET 3 Control Reference
SetDeltaCrosshairsMode Method

Use this method to programmatically enable or disable the delta crosshairs mode.   This method is equivalent to selecting the Delta Crosshairs button in the Toolbar.

Syntax
[Visual Basic]
Sub SetDeltaCrosshairsMode(ButtonSelected As Boolean)
[C#]
void XYChartNETCtl.SetDeltaCrosshairsMode(bool ButtonSelected)
[C++]
void SetDeltaCrosshairsMode(bool)
       
Parameters
ButtonSelected
Boolean value indicating the delta crosshairs mode.  TRUE indicates delta crosshairs is enabled, and the Delta Crosshairs button in the Toolbar is displayed as selected; FALSE indicates delta crosshairs is disabled, and the Delta Crosshairs button in the Toolbar is displayed as unselected.
Remarks
The delta crosshairs characteristics are determined by the Delta Crosshairs property.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

If XYChartNETCtl1.Toolbar.Buttons.CrosshairsDeltaPressed Then
   XYChartNETCtl1.SetDeltaCrosshairsMode(False)   'Disable the Delta Crosshairs; a Refresh call is not required
Else
   XYChartNETCtl1.SetDeltaCrosshairsMode(True)    'Enable the Delta Crosshairs; a Refresh call is not required
End If
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.