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

◆ create() [9/24]

static choice xtd::forms::choice::create ( const object_collection items,
size_t  selected_index 
)
static

A factory to create an xtd::forms::choice with specified items, and selected_index.

Parameters
itemsA choice::object_collection representing the items in the choice.
selected_indexA zero-based index of the currently selected item. The xtd::forms::choice::object_collection::npos is returned if no item is selected.
Returns
New xtd::forms::choice created.