ChartNamedElementCollection<T>.IndexOf Method (String)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Finds the index of the chart element with the specified name.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public int IndexOf(
	string name


Type: System.String

The name of the chart element.

Return Value

Type: System.Int32

An integer value that represents the position of the chart element in the zero-based index.

.NET Framework
Available since 4.0
Return to top