method Items.Add (Caption as String, [ItemType as Variant], [ID as Variant])
Adds an Item object and returns a reference to the newly created object.

TypeDescription
Caption as String A String expression that specifies the HTML caption to be displayed on the item.
ItemType as Variant An ItemTypeEnum expression that specifies the type of the item to be added. 
ID as Variant A Long expression that specifies the identifier of the item to be added. 
ReturnDescription
ItemAn Item object being created.
The Add method adds a new item to the Items collection. The ToString property loads or saves the control items from a string, so you can use the ToString method to add items too!. The Remove method removes a specified item. The Select property shows modal the context menu, and waits for the user to make the selection. The Item property gets the Item object giving its identifier or caption. The SubMenu property gets a collection of Item objects to be displayed on the sub-menu. This property returns a not-empty value, if the ItemType parameter is SubMenu. The SubControl property gets access to the Control object that holds information about the inside ActiveX or Window hosted by the item. This property returns a not-empty value, if the ItemType parameter is SubControl.

The Caption parameter supports the following HTML tags: