The ChoiceBox class represents a choice box control.
Returns the index of the item that was added.
Adds an item, specified by text, to the list of items in the choice box.
Clears the choice box of all items.
Deletes an item with a specified index from the choice box.
Returns the index of the text that's found in the choice box and -1 if the text isn't found.
Finds the text item in the choice box and returns it's index if it's found and -1 if it isn't found.
The text item at the specified index.
Returns the text item at the specified index. If index isn't specified, then the currently selected string is returned, which may include the item that's currently being entered in the choice box before it actually becomes part of the list.
Returns the number of items in the choice box.
Returns the number of items in the choice box.
Returns the index of the selected item in the choice box.
Returns the index of the selected item in the choice box.
Returns the current text in the choice box.
Inserts a text item at a specified index.
Selects a choice box item at the specified index.
Sets the new text of a choice box item at a specified index.
Sets the current text in the choice box. If the text item doesn't exist in the choice box, the function will do nothing and will return false.