Sign in Join
FPDoc Onlineexperiment

TShortCutList.IndexOfShortCut function

Member of TShortCutListpublicIn unit ActnList

Gets the ordinal position in the list for the specified TShortCut class instance.

Declaration

pascal
function IndexOfShortCut(const Shortcut: TShortCut): Integer

Arguments

Shortcut

TShortCut instance to locate in the list.

Function result

Ordinal position in the list for the specified shortcut, or -1 when not found.

Description

Compares the values in the Objects property to the class instance specified in ShortCut. The return value is the ordinal position in the list where the class instance was found, or -1 if a match was not found.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.