XY Chart NET 3 Control Reference > Methods > 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.
[Visual Basic] Sub SetDeltaCrosshairsMode(ButtonSelected As Boolean) |
[C#] void XYChartNETCtl.SetDeltaCrosshairsMode(bool ButtonSelected) |
[C++] void SetDeltaCrosshairsMode(bool) |
' 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