ToolStripItemCollection.IndexOf Method (ToolStripItem)

 
System_CAPS_noteNote

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

Retrieves the index of the specified item in the collection.

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

public int IndexOf(
	ToolStripItem value
)

Return Value

Type: System.Int32

A zero-based index value that represents the position of the specified ToolStripItem in the ToolStripItemCollection, if found; otherwise, -1.

.NET Framework
Available since 2.0
Return to top
Show: