System.Actions.TCustomShortCutList.IndexOfShortCut
Delphi
function IndexOfShortCut(const ShortCut: System.Classes.TShortCut): Integer; overload;
function IndexOfShortCut(const ShortCut: string): Integer; overload;
C++
int __fastcall IndexOfShortCut(const System::Classes::TShortCut ShortCut)/* overload */;
int __fastcall IndexOfShortCut(const System::UnicodeString ShortCut)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Actions.pas System.Actions.hpp |
System.Actions | TCustomShortCutList |
Description
Returns the position of a shortcut in the TCustomShortCutList list.
Call IndexOfShortCut to locate a shortcut in the TCustomShortCutList 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.
Depending on the type of the ShortCut
parameter, IndexOfShortCut locates a shortcut specified as the System.Actions.TContainedAction.ShortCut value or specified as its string representation.