XY Chart NET 3 Control Reference > Events > CrossHairsDeltaMove Event |
[Visual Basic] Event CrossHairsDeltaMove() |
[C#] CrossHairsDeltaMove() |
[C++] CrossHairsDeltaMove() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Private Sub XYChartNETCtl1_CrossHairsDeltaMove() Handles XYChartNETCtl1.CrossHairsDeltaMove '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