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

◆ selected_index() [1/2]

virtual size_t xtd::forms::list_control::selected_index ( ) const
virtualnoexcept

Gets the zero-based index of the currently selected item.

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

Reimplemented in xtd::forms::choice, xtd::forms::combo_box, and xtd::forms::list_box.