- key
- The name of the System.Windows.Forms.ToolStripItem to search for.
A zero-based index value that represents the position of the first occurrence of the System.Windows.Forms.ToolStripItem specified by the key parameter, if found; otherwise, -1.
The key parameter value corresponds to the ToolStripItem.Name property.
If ToolStripItemCollection.IndexOfKey(string) is called successively, the last returned index will be checked for a key match first, and if there is no match, the search starts at the beginning of the collection.