The ComboBoxItemCollection class represents a collection of ComboBoxItem objects that can be individually accessed by index.
More...
Public Member Functions |
Number | add (ComboBoxItem item) |
| Adds a ComboBoxItem object to the end of the combobox list.
|
Number | add (String title, String value) |
| Adds an item with the given title and user data to the end of the combobox list.
|
void | clear () |
| Removes all ComboBoxItem objects from the collection.
|
void | insert (Number index, ComboBoxItem item) |
| Inserts a new ComboBoxItem object into the collection at the specified index.
|
void | insert (Number index, String title, String value="") |
| Inserts a new item with the given title and user data into the collection at the specified index.
|
ComboBoxItem | operator[] (Number i) |
| Gets the ComboBoxItem object at the specified index.
|
void | removeAt (Number index) |
| Removes the ComboBoxItem object at the specified index.
|
Detailed Description
The ComboBoxItemCollection class represents a collection of ComboBoxItem objects that can be individually accessed by index.
Member Function Documentation
Adds a ComboBoxItem object to the end of the combobox list.
- Returns
- Returns the index of the newly added ComboBoxItem in the collection.
Number add |
( |
String |
title, |
|
|
String |
value |
|
) |
| |
|
inline |
Adds an item with the given title and user data to the end of the combobox list.
- Returns
- Returns the index of the newly added ComboBoxItem in the collection.