XY Chart NET 3 Control Reference
XDeltaCoordinates Property

Use this property to obtain the x-coordinates of the delta crosshairs for a specific X-axis.

This property is only available in the delta crosshairs mode (see Toolbar).

Syntax
[Visual Basic]
ReadOnly Property XDeltaCoordinates(XAxisNumber As Integer, [bFormatted As Boolean = True]) As String()
[C#]
string[] XYChartNETCtl.get_XDeltaCoordinates(int XAxisNumber, bool bFormatted)
[C++]
property cli::array<System::String ^, 1> ^ XYChartNet::XYChartNETCtl::XDeltaCoordinates[int, bool]
       
Parameters
XAxisNumber
The x-axis index to obtain the delta crosshair's x-coordinates.  Valid values are 0..(NumXScales - 1).
bFormatted
By default, the returned text strings are formatted based on the format settings for the x-axis scale.   To obtain the x-coordinates for a specific x-axis without its format settings applied, pass in False.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
' NumXScales = 2
' NumYScales = 2
' X-Axis scale 0: FormatStyle=Numeric, NumericFormat="(Auto)"
' X-Axis scale 1: FormatStyle=Numeric, NumericFormat="0.00%"

Private Sub XYChartNETCtl1_CrossHairsDeltaMove() Handles XYChartNETCtl1.CrossHairsDeltaMove
   With XYChartNETCtl1
      Dim xCoords(1) As String
      Dim yCoords(1) As String
     
      xCoords = .XDeltaCoordinates(0)         'Get delta crosshairs x-coordinates for x-axis 0
      Axis0_X0Label.Text = xCoords(0)         'Display first delta crosshairs' x-coord in label Axis0_X0Label
      Axis0_X1Label.Text = xCoords(1)         'Display second delta crosshairs' x-coord in label Axis0_X1Label
    
      xCoords = .XDeltaCoordinates(1, False)  'Get delta crosshairs x-coordinates for x-axis 1; do not format the values
      Axis1_X0Label.Text = xCoords(0)         'Display first delta crosshairs' x-coord in label Axis1_X0Label
      Axis1_X1Label.Text = xCoords(1)         'Display second delta crosshairs' x-coord in label Axis1_X1Label

      yCoords = .YDeltaCoordinates(0)         'Get delta crosshairs y-coordinates for y-axis 0
      Axis0_Y0Label.Text = yCoords(0)         'Display first delta crosshairs' y-coord in label Axis0_Y0Label
      Axis0_Y1Label.Text = yCoords(1)         'Display second delta crosshairs' y-coord in label Axis0_Y1Label

      yCoords = .YDeltaCoordinates(1)         'Get delta crosshairs y-coordinates for y-axis 1
      Axis1_Y0Label.Text = yCoords(0)         'Display first delta crosshairs' y-coord in label Axis1_Y0Label
      Axis1_Y1Label.Text = yCoords(1)         'Display second delta crosshairs' y-coord in label Axis1_Y1Label
     
   End With
End Sub
                       
                      
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.