Click or drag to resize

ListBox Methods (Typed)

X#

The ListBox type exposes the following members.

Functions
  NameDescription
Public methodAddItem
Add a new item to a list box at a specified position.
(Overrides AddItem(Usual, Usual, Usual).)
Public methodChangeSelected
Change a range of items in a multiple selection list box to a specified selection.
Public methodClear (Overrides Clear.)
Public methodClearSelection
Clear a multiple selection list box of all selections.
Public methodDeleteItem
Remove an item from a list box.
(Overrides DeleteItem(Long).)
Public methodDeselectItem
Turn off the selection of a specified item in a list box.
Public methodEnableItemDrag
Turn the list box into a drag list box.
Public methodCode exampleFillUsing
Specify the set of values to be displayed in the list box, using an array or a data server. These values act as a constraint on the values that may be entered in the list box, and optionally as a translation between program values and display values.
Public methodCode exampleFillUsingBySortedList
Specify the set of values to be displayed in the list box, using an array or a data server. These values act as a constraint on the values that may be entered in the list box, and optionally as a translation between program values and display values.
Public methodFirstSelected
Returns the position of the first item selected in a multiple selection list box, or 0 if no item is selected.
Public methodGetOptimalWidth
Public methodIsSelected
Determine if the list box item at the specified index position is selected.
Public methodListFiles Obsolete.
Fill a list box with the names of all files that match the specified path or file name.
Public methodNextSelected
After calling ListBox:FirstSelected(), this method is used to cycle through the remaining items selected in a multiple selection list box.
Public methodSelectItem
Turn on the selection of an item in a list box.
Public methodSetTabs
Top
See Also