Sign in Join
FPDoc Onlineexperiment

TMenuItem.IndexOf function

Member of TMenuItempublicIn unit Menus

Gets the ordinal position in Items for the specified menu item.

Declaration

pascal
function IndexOf(Item: TMenuItem): Integer

Arguments

Item

Menu item to locate in the Items property.

Function result

Ordinal position for the specified menu item, or -1 when not found.

Description

Calls the IndexOf method in Items to locate the menu item specified in Item. The return value is -1 if Items has not been assigned in the class instance.

See also

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