MobileForms Toolkit Documentation

KeyDescriptorCollection.IndexOf Method 

Returns the zero-based index of the first occurrence of a value in the collection or in a portion of it.

public int IndexOf(
KeyDescriptor value
);

Parameters

value
An object representing the KeyDescriptor to locate in the collection. .

Return Value

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

Remarks

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.

See Also

KeyDescriptorCollection Class | Resco.Controls.Keyboard Namespace