XY Chart NET 3 Control Reference
CrossHairsMove Event
This event is generated whenever the chart is in the crosshairs mode (see Toolbar) and the user moves the mouse cursor over the plot area.  This event can be used to obtain the crosshairs’ corresponding X and/or Y coordinates.
Syntax
[Visual Basic]
Event CrossHairsMove()
[C#]
CrossHairsMove()
[C++]
CrossHairsMove()
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Private Sub XYChartNETCtl1_CrossHairsMove() Handles XYChartNETCtl1.CrossHairsMove
   'Enable label used to display crosshairs' x-coord
   If Not X0Label.Visible Then X0Label.Visible = True
   'Enable label used to display crosshairs' y-coord
   If Not Y0Label.Visible Then Y0Label.Visible = True
   With XYChartNETCtl1
      X0Label.Text = .XCoordinate(0)  'Display crosshairs' x-coord in label X0Label
      Y0Label.Text = .YCoordinate(0)  'Display crosshairs' y-coord in label Y0Label
   End With
End Sub
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.