API:Vcl.Menus.TPopupList.Add
Delphi
procedure Add(Popup: TPopupMenu);
C++
HIDESBASE void __fastcall Add(TPopupMenu* Popup);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TPopupList |
Description
Inserts a new item at the end of the list.
Vcl.Menus.TPopupList.Add inherits from System.Classes.TList.Add. All content below this line refers to System.Classes.TList.Add.
Inserts a new item at the end of the list.
Call Add to insert a new object at the end of the Items array. Add returns the index of the new item, where the first item in the list has an index of 0.
Add increments Count and, if necessary, allocates memory by increasing the value of Capacity.
Note: Add always inserts the Item pointer at the end of the Items array, even if the Items array contains nil (Delphi) or NULL (C++) pointers.
See Also
Code Examples