7#include <xtd/iequatable>
76 item(
const char* value);
78 item& operator =(
const item& value) =
default;
97 using list_box::item::compare_to;
98 int32 compare_to(
const item& value)
const noexcept override;
99 using list_box::item::equals;
100 bool equals(
const item& value)
const noexcept override;
168 std::vector<
size_t> selected_indices() const noexcept override;
174 const
item& selected_item() const noexcept;
208 bool get_item_checked(
size_t index) const;
219 const
xtd::
string& get_item_text(
size_t index) const;
225 void set_item_checked(
size_t index,
bool checked);
237 void set_item_text(
size_t index, const
xtd::
string& text);
401 bool allow_selection() const noexcept override;
420 void on_selected_value_changed(const
event_args& e) override;
425 void on_items_item_added(
size_t pos, const
item&
item);
426 void on_items_item_removed(
size_t pos, const
item&
item);
427 void on_items_item_updated(
size_t pos, const
item&
item);
Represents text as a sequence of character units.
Definition basic_string.h:79
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Represents an event.
Definition event.h:21
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.h:21
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
delegate< void(object &sender, item_check_event_args &e)> item_check_event_handler
Represents the method that will handle the ItemCheck event of a CheckedListBox or ListView control.
Definition item_check_event_handler.h:25
#define forms_export_
Define shared library export.
Definition forms_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
Contains xtd::forms::item_check_event_handler event handler.
Contains xtd::forms::list_box control.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10