ToolStripItemCollection::IndexOf Method (ToolStripItem^)

 

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: