XY Chart NET 3 Control Reference > Methods > SetDeltaCrosshairsPosition Method |
Use this method to set the delta crosshairs to a specific x/y location on the chart. This method is only available in the delta crosshairs mode (see SetDeltaCrosshairsMode).
[Visual Basic] Sub SetDeltaCrosshairsPosition(X1CrossCoordinate
As Double, |
[C#] void
XYChartNETCtl.SetDeltaCrosshairsPosition(double
X1CrossCoordinate, |
[C++] void SetDeltaCrosshairsPosition(double, double, int, int, double, double, int, int) |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Dim xCrossCoord As Double Dim yCrossCoord As Double Dim xScaleIdx As Integer Dim yScaleIdx As Integer xScaleIdx = 0 'X-axis scale index the crosshair's x-coord will be set against yScaleIdx = 0 'Y-axis scale index the crosshair's y-coord will be set against xCrossCoord = 24 'Vertical crosshair position yCrossCoord = 500 'Horizontal crosshair position 'Position crosshairs; a Refresh call is not required XYChartNETCtl1.SetDeltaCrosshairsMode(True) XYChartNETCtl1.SetDeltaCrosshairsPosition(xCrossCoord, yCrossCoord, xScaleIdx, yScaleIdx, 10, 100)