IndexOf

ChartSeriesCollection.IndexOf method

Searches for the specified ChartSeries and returns the zero-based index of the first occurrence within the entire Collection

public int IndexOf(IChartSeries value)
ParameterTypeDescription
valueIChartSeriesChart series value.

Return Value

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

See Also