CategoryNameCollection.IndexOf Method (String)


Gets the index of the specified value.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

public int IndexOf(
	string value


Type: System.String

The category name to retrieve the index of in the collection.

Return Value

Type: System.Int32

The index in the collection, or null if the string does not exist in the collection.

.NET Framework
Available since 1.1
Return to top