Choice.selectedIndex
int selectedIndex() constGets the currently selected item index.
Returns
Selected index, or -1 if none
void selectedIndex(int index)Sets the currently selected item by index.
Parameters
index | Index to select |
int selectedIndex() constGets the currently selected item index.
void selectedIndex(int index)Sets the currently selected item by index.
index | Index to select |