System.Windows.Forms.ToolStripItemCollection.IndexOf Method

Retrieves the index of the specified item in the collection.

Syntax

public int IndexOf (ToolStripItem value)

Parameters

value
The System.Windows.Forms.ToolStripItem to locate in the System.Windows.Forms.ToolStripItemCollection.

Returns

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0