2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / ChartDataSeriesCollection Class / IndexOf Method
The ChartDataSeries to locate in the ChartDataSeriesCollection.

In This Topic
    IndexOf Method (ChartDataSeriesCollection)
    In This Topic
    Searches for the specified ChartDataSeries and returns the zero-based index of the first occurrence within the entire ChartDataSeriesCollection.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal ser As ChartDataSeries _
    ) As System.Integer
    public System.int IndexOf( 
       ChartDataSeries ser
    )

    Parameters

    ser
    The ChartDataSeries to locate in the ChartDataSeriesCollection.

    Return Value

    The zero-based index of the first occurrence of value within the entire ChartDataSeriesCollection, if found; otherwise, -1.
    See Also