Show: Delphi C++
Display Preferences

Vcl.Menus.TMenuItem.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

void __fastcall Add(TMenuItem* Item)/* overload */;
void __fastcall Add(TMenuItem* const *AItems, const int AItems_High)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus 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 Examples


Personal tools
In Other Languages
Previous Versions
Assistance