ToolStripItemCollection::IndexOf Method (ToolStripItem^)
.NET Framework (current version)
Retrieves the index of the specified item in the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System.Windows.Forms::ToolStripItem^
The ToolStripItem to locate in the ToolStripItemCollection.
Return Value
Type: System::Int32A 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
Available since 2.0
Show: