XY Chart NET 3 Control Reference
CrossHairsDeltaSelected Event
This event is generated whenever the user selects the delta crosshairs toolbar button (see Toolbar).  Use this event to perform operations specific to whenever the delta crosshairs toolbar button is selected.
Syntax
[Visual Basic]
Event CrossHairsDeltaSelected()
[C#]
CrossHairsDeltaSelected()
[C++]
CrossHairsDeltaSelected()
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Private Sub XYChartNETCtl1_CrossHairsDeltaSelected() Handles XYChartNETCtl1.CrossHairsDeltaSelected
   'Enable labels used to display delta crosshairs' x-coord
   If Not X0Label.Visible Then X0Label.Visible = True
   If Not X1Label.Visible Then X1Label.Visible = True
  
   'Enable labels used to display delta crosshairs' y-coord
   If Not Y0Label.Visible Then Y0Label.Visible = True
   If Not Y1Label.Visible Then Y1Label.Visible = True
  
   With XYChartNETCtl1
      Dim xCoords(1) As String
      Dim yCoords(1) As String
     
      xCoords = .XDeltaCoordinates(0)
      yCoords = .YDeltaCoordinates(0)
     
      X0Label.Text = xCoords(0)  'Display first delta crosshairs' x-coord in label X0Label
      X1Label.Text = xCoords(1)  'Display second delta crosshairs' x-coord in label X1Label
      Y0Label.Text = yCoords(0)  'Display first delta crosshairs' y-coord in label Y0Label
      Y1Label.Text = yCoords(1)  'Display second delta crosshairs' y-coord in label Y1Label
   End With
End Sub
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.