Type | Description | |||
Items | An Items object that holds a collection of Item objects. |
The following VB sample loads three items ( Item A, Item B and Item C ) from a string and displays the context menu:
Set contextMenu = CreateObject("Exontrol.ContextMenu") With contextMenu .Items.ToString = "Item A,Item B,Item C" iSelect = .Select() If (iSelect <> 0) Then Debug.Print (.Items.Item(iSelect).Caption) End If End With
The Item property accesses an Item object giving its identifier or caption.