Vcl.Menus.TMenuItem.Insert
Delphi
procedure Insert(Index: Integer; Item: TMenuItem);
C++
HIDESBASE void __fastcall Insert(int Index, TMenuItem* Item);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenuItem |
Description
Inserts a menu item into a specified position in the Items array.
Use Insert to insert a new menu item to the dropdown menu for this menu item. If this menu item is the value of the Items property of a main menu or pop-up menu, Insert inserts an item into that menu. Specify the new menu item to add as the value of the Item parameter, and the position in the Items array as the value of the Index parameter.
See Also
Code Examples