Sign in Join
FPDoc Onlineexperiment

TMenuItem.MenuIndex property

Member of TMenuItempublicIn unit Menus

Ordinal position for the menu item in its Parent.

Declaration

pascal
property MenuIndex: Integer read GetMenuIndex write SetMenuIndex;

Description

MenuIndex is an Integer property with the ordinal position for the menu item in its Parent.

The property value is retrieved by calling the IndexOf method in Parent using the current class instance as an argument. The property value is -1 if Parent has not been assigned. Changing the value for the property causes the menu item to be relocated in Parent to the position indicated in the new property value.

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