The ListBox class represents a list box control.
Returns the index of the text item that was added. If an error is encountered during the call, -1 is returned.
Adds the text to the listbox and returns the index of the text item that was added.
Clears the listbox of all items.
True if the function succeeded, false otherwise
Deletes an item at the specified index from the listbox.
Deselects all the items in the listbox.
Deselects the item at the specified index.
Returns the zero-based index of the item if it's found, and -1 if the item can't be found.
Finds a listbox item with the specified text and returns the zero-based index of the item that was found. If the specified text item can't be found, the function returns -1.
Returns the item at the specified index.
Returns the item at the specified, zero-based index item in the listbox. If the index isn't specified, the function returns the current item in the listbox.
An integer representing the number of items in the listbox.
Returns the number of items in the listbox.
An array of strings.
Returns an array of strings containing all items in the listbox.
Returns the zero-based index of the first selected item in the listbox after the start index. If there are no selected items, the function returns -1.
Returns the zero-based index of the first selected item in the listbox after the start index. If there are no selected items, the function returns -1.
Returns the text of the first selected item in the listbox after the start index. If there is no selected item or an error occurs, null is returned.
Returns the text of the first selected item in the listbox after the start index. If there are no selected items, the function returns null.
An Array of strings
Returns an Array object containing all selected items in the listbox. If there are no selected items or an error occurs, an empty array is returned.
Inserts the text into the listbox at the position specified by index.
Returns true if the item at the specified index is selected, and false otherwise. If an error is encountered during the call, null is returned.
Indicates whether or not the item at the specified index is selected. If the item is selected, the function returns true. If the item is not selected, the function returns false.
Select the item at the specified index.
True if the function succeeded, false otherwise
Sets the text of the item at the specified index.
Sorts the items in the listbox. The ascending parameter, which is optional, specifies the sort order. If this parameter is not specified, an ascending sort order is assumed.