Struct winsafe::gui::spec::ListBoxItems[][src]

pub struct ListBoxItems<'a> { /* fields omitted */ }
Expand description

Exposes item methods of a ListBox control.

You cannot directly instantiate this object, it is created internally by the control.

Implementations

Adds new texts by sending lb::AddString messages.

Examples

use winsafe::ListBox;

let lst_names: ListBox; // initialized somewhere

lst_names.items().add(&["John", "Mary"]);

Retrieves the number of items by sending an lb::GetCount message.

Deletes the item at the given index by sending an lb::DeleteString message.

Deletes all items by sending an lb::ResetContent message.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.