Type | Description | |||
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. |
Return | Description | |||
Item | An 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