Returns the zero-based index of the first occurrence of a value in the collection or in a portion of it.
The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.
The IndexOf method enables you to determine where an shortcut is located within the collection. To determine if an shortcut is located within the collection before calling this method, use the Contains method.
KeyDescriptorCollection Class | Resco.Controls.Keyboard Namespace