Vcl.Menus.TMenuItem.Remove
Delphi
procedure Remove(Item: TMenuItem);
C++
HIDESBASE void __fastcall Remove(TMenuItem* Item);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenuItem |
Description
Removes a menu item from the Items property array
Call Remove to remove a menu item and all its submenus from a menu. The Item parameter is the item to be removed. If Item is not a menu item in the Items array, Remove raises an exception.
Remove does not free the item's memory. To remove an item from the menu and free its memory, call the Free method in the item you want to remove.
To temporarily hide a menu item, without deleting it, use the Visible property.