RAD Studio VCL Reference
TShortCutList.IndexOfShortCut Method

Returns the position of a shortcut in the list.

function IndexOfShortCut(const Shortcut: TShortCut): Integer;
__fastcall int IndexOfShortCut(const TShortCut Shortcut);

Call IndexOfShortCut to locate a shortcut in the list. IndexOfShortCut returns the position of the first occurrence of ShortCut in the list, where 0 is the position of the first shortcut, 1 is the position of the second shortcut, and so on. If the shortcut does not appear in the list, IndexOfShortCut returns –1.

Note: To locate a shortcut based on its string representation rather than the shortcut value, use the Find or IndexOf method instead.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!