xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.

◆ selected_index() [1/2]

list_control& xtd::forms::list_box::selected_index ( size_t  selected_index)
overridevirtual

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.

Implements xtd::forms::list_control.