xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::choice Class Referencefinal
Inheritance diagram for xtd::forms::native::choice:
xtd::static_object

Definition

Contains choice native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static void begin_update (intptr control)
 Maintains performance while items are added to the choice one at a time by preventing the control from drawing until the end_update() method is called.
 
static void delete_item (intptr control, size_t index)
 Deletes specified item index.
 
static void end_update (intptr control)
 Resumes painting the checked_list_box control after painting is suspended by the begin_update method.
 
static void insert_item (intptr control, size_t index, const xtd::string &value)
 Inserts at specified item index a specified value.
 
static size_t selected_index (intptr control)
 Gets selected item index.
 
static void selected_index (intptr control, size_t index)
 Sets selected item with specified index.
 
static void update_item (intptr control, size_t pos, const xtd::string &value)
 Updates a specified item index with specified value.
 

Member Function Documentation

◆ begin_update()

static void xtd::forms::native::choice::begin_update ( intptr  control)
staticprotected

Maintains performance while items are added to the choice one at a time by preventing the control from drawing until the end_update() method is called.

Parameters
controlChoice window handle.
Warning
Internal use only

◆ delete_item()

static void xtd::forms::native::choice::delete_item ( intptr  control,
size_t  index 
)
staticprotected

Deletes specified item index.

Parameters
controlChoice window handle.
indexThe item index to delete.
Warning
Internal use only

◆ end_update()

static void xtd::forms::native::choice::end_update ( intptr  control)
staticprotected

Resumes painting the checked_list_box control after painting is suspended by the begin_update method.

Parameters
controlChoice window handle.
Warning
Internal use only

◆ insert_item()

static void xtd::forms::native::choice::insert_item ( intptr  control,
size_t  index,
const xtd::string value 
)
staticprotected

Inserts at specified item index a specified value.

Parameters
controlChoice window handle.
indexThe item index to insert.
valueThe text value.
Warning
Internal use only

◆ selected_index() [1/2]

static size_t xtd::forms::native::choice::selected_index ( intptr  control)
staticprotected

Gets selected item index.

Parameters
controlChoice window handle.
Returns
The selected item index.
Warning
Internal use only

◆ selected_index() [2/2]

static void xtd::forms::native::choice::selected_index ( intptr  control,
size_t  index 
)
staticprotected

Sets selected item with specified index.

Parameters
controlChoice window handle.
indexThe selected item index.
Warning
Internal use only

◆ update_item()

static void xtd::forms::native::choice::update_item ( intptr  control,
size_t  pos,
const xtd::string value 
)
staticprotected

Updates a specified item index with specified value.

Parameters
controlChoice window handle.
indexThe item index to update.
valueThe text value.
Warning
Internal use only

The documentation for this class was generated from the following file: