Menus.TMenuItem.Add

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Menus.pas

	procedure Add(Item: TMenuItem); overload;
 
	procedure Add(const AItems: array of TMenuItem); overload;


Unit: Menus

Type: method

Visibility: public

Member Of: TMenuItem

C++ Information

From Menus.hpp

	void __fastcall Add(Menus::TMenuItem * Item);
 
	void __fastcall Add(Menus::TMenuItem * const * AItems, int AItems_Size);


Unit: Menus

Type: method

Visibility: public

Member Of: TMenuItem

Description

Adds one or more menu items to the end of the Items property array.


Use Add to add new menu items 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, Add adds the items to the end of the menu.

Specify a single new menu item to add as the value of the Item parameter, or an array of new menu items as the value of the AItems parameter. AItems_Size is the index of the last item in the AItems array (one less than the number of items).

See Also

Code Samples


Personal tools
Translations
Newest Version