RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TShortCutList.IndexOfShortCut Method

Returns the position of a shortcut in the list.

Pascal
function IndexOfShortCut(const Shortcut: TShortCut): Integer;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!