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

TypeDescription
Caption as String A string expression that defines the item's caption. Built-in HTML tags supported. Check the Caption property for all possible HTML tags.
Image as Variant A long expression that specifies the index of icon being assigned to the item.
ReturnDescription
ItemAn Item object being created.

Use the Add method to add new items to the control. Use the Caption property to retrieve the item's caption. Use the Remove method to remove a specific item. Use the Refresh method to refresh the control. Use the Item property to access to the items of the control. Use the ToolTip property to assign a tooltip to an item.

The following sample adds a new item:

With Rollist1
        .BeginUpdate
            With .Add("<b>New</b> Item", 1)
                .ToolTip = "Adds a new node"
            End With
        .EndUpdate
End With