ChartNamedElementCollection<T>.IndexOf Method (String)

.NET Framework (current version)

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

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.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