2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / ChartGroup Class / CoordToSeriesIndex Method
X client coordinate.
Y client coordinate.
Element parameter indicates which plot element is used.
Data series index.
Distance to the closest data point.

In This Topic
    CoordToSeriesIndex Method
    In This Topic
    Returns series index and distance to the closest data element in the group given client coordinates.
    Syntax
    'Declaration
     
    Public Function CoordToSeriesIndex( _
       ByVal XCoord As System.Integer, _
       ByVal YCoord As System.Integer, _
       ByVal element As PlotElementEnum, _
       ByRef SeriesIndex As System.Integer, _
       ByRef Distance As System.Integer _
    ) As System.Boolean
    public System.bool CoordToSeriesIndex( 
       System.int XCoord,
       System.int YCoord,
       PlotElementEnum element,
       ref System.int SeriesIndex,
       ref System.int Distance
    )

    Parameters

    XCoord
    X client coordinate.
    YCoord
    Y client coordinate.
    element
    Element parameter indicates which plot element is used.
    SeriesIndex
    Data series index.
    Distance
    Distance to the closest data point.

    Return Value

    The return value indicates successful calculation.
    Remarks
    Mouse coordinates are given in client coordinates.
    See Also