Use this property to obtain the y-coordinate of the crosshairs for a specific Y-axis.
This property is only available in the crosshairs mode (see Toolbar).
[Visual Basic] ReadOnly Property YCoordinate(YAxisNumber As Integer, [bFormatted As Boolean = True]) As String [C#] string XYChartNETCtl.get_YCoordinate(int YAxisNumber, bool bFormatted) [C++] System::String __gc *XYChartNet::XYChartNETCtl::get_YCoordinate(int, bool)
XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
NumXScales = 1
NumYScales = 5
Y-Axis scale 0: FormatStyle=Numeric, NumericFormat="(Auto)"
Y-Axis scale 1: FormatStyle=Numeric, NumericFormat="0.00%"
[Visual Basic] Private Sub XYChartNETCtl1_CrossHairsMove() Handles XYChartNETCtl1.CrossHairsMove With XYChartNETCtl1 X0Label.Caption = .XCoordinate(0) 'Display crosshair's x-coord for x-axis 0 in X0Label Y0Label.Caption = .YCoordinate(0) 'Display crosshair's y-coord for y-axis 0 in Y0Label Y1Label.Caption = .YCoordinate(1, False) 'Display crosshair's y-coord for y-axis 1 in Y1Label; 'do not format the value Y2Label.Caption = .YCoordinate(2) 'Display crosshair's y-coord for y-axis 2 in Y2Label Y3Label.Caption = .YCoordinate(3) 'Display crosshair's y-coord for y-axis 3 in Y3Label Y4Label.Caption = .YCoordinate(4) 'Display crosshair's y-coord for y-axis 4 in Y4Label End With End Sub [C#] private void XYChartNETCtl1_CrossHairsMove() { X0Label.Text = XYChartNETCtl1.get_XCoordinate(0, true); //Display crosshair's x-coord for x-axis 0 in X0Label X1Label.Text = XYChartNETCtl1.get_XCoordinate(1, false); //Display crosshair's x-coord for x-axis 1 in X1Label; //do not format the value Y0Label.Text = XYChartNETCtl1.get_YCoordinate(0, true); //Display crosshair's y-coord for y-axis 0 in Y0Label Y1Label.Text = XYChartNETCtl1.get_YCoordinate(1, true); //Display crosshair's y-coord for y-axis 1 in Y1Label Y2Label.Text = XYChartNETCtl1.get_YCoordinate(2, true); //Display crosshair's y-coord for y-axis 2 in Y2Label Y3Label.Text = XYChartNETCtl1.get_YCoordinate(3, true); //Display crosshair's y-coord for y-axis 3 in Y3Label Y4Label.Text = XYChartNETCtl1.get_YCoordinate(4, true); //Display crosshair's y-coord for y-axis 4 in Y4Label } [C++] private: System::Void XYChartNETCtl1_CrossHairsMove() { X0Label.Text = XYChartNETCtl1->get_XCoordinate(0, true); //Display crosshair's x-coord for x-axis 0 in X0Label X1Label.Text = XYChartNETCtl1->get_XCoordinate(1, false); //Display crosshair's x-coord for x-axis 1 in X1Label; //do not format the value Y0Label.Text = XYChartNETCtl1->get_YCoordinate(0, true); //Display crosshair's y-coord for y-axis 0 in Y0Label Y1Label.Text = XYChartNETCtl1->get_YCoordinate(1, true); //Display crosshair's y-coord for y-axis 1 in Y1Label Y2Label.Text = XYChartNETCtl1->get_YCoordinate(2, true); //Display crosshair's y-coord for y-axis 2 in Y2Label Y3Label.Text = XYChartNETCtl1->get_YCoordinate(3, true); //Display crosshair's y-coord for y-axis 3 in Y3Label Y4Label.Text = XYChartNETCtl1->get_YCoordinate(4, true); //Display crosshair's y-coord for y-axis 4 in Y4Label }