xtd 0.2.0
Loading...
Searching...
No Matches

◆ selected_index() [2/2]

virtual list_control & xtd::forms::list_control::selected_index ( size_t  selected_index)
pure virtual

When overridden in a derived class, Sets the zero-based index of the currently selected item.

Parameters
selected_indexA zero-based index of the currently selected item. A value of negative one (-1) is returned if no item is selected.
Returns
Current list_control.

Implemented in xtd::forms::checked_list_box, xtd::forms::checked_list_box, xtd::forms::choice, xtd::forms::combo_box, xtd::forms::list_box, xtd::forms::choice, xtd::forms::combo_box, and xtd::forms::list_box.