ChartNamedElementCollection<T>::IndexOf Method (String^)

.NET Framework (current version)
 

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
)

Parameters

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
Show: