Menus.TMenuItem.Remove
From RAD Studio VCL Reference
Contents |
Delphi Information
From Menus.pas
procedure Remove(Item: TMenuItem);
Unit: Menus
Type: method
Visibility: public
Member Of: TMenuItem
C++ Information
From Menus.hpp
void __fastcall Remove(Menus::TMenuItem * Item);
Unit: Menus
Type: method
Visibility: public
Member Of: 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.