Represent an item contained in the checked_list_box::object_collection collection.
|
| item ()=default |
| Initializes a new instance of the item class.
|
|
| item (const xtd::string &value) |
| Initializes a new instance of the item class with specified value.
|
|
| item (const xtd::string &value, bool checked) |
| Initializes a new instance of the item class with specified value and check state.
|
|
| item (const xtd::string &value, forms::check_state check_state) |
| Initializes a new instance of the item class with specified value and checked state.
|
|
| item (const xtd::string &value, const std::any &tag) |
| Initializes a new instance of the item class with specified value and tag.
|
|
| item (const xtd::string &value, bool checked, const std::any &tag) |
| Initializes a new instance of the item class with specified value, check state and tag.
|
|
| item (const xtd::string &value, forms::check_state check_state, const std::any &tag) |
| Initializes a new instance of the item class with specified value, check state and tag.
|
|
|
int32 | compare_to (const item &value) const noexcept override |
|
bool | equals (const item &value) const noexcept override |
|
|
virtual int32 | compare_to (const item &obj) const noexcept=0 |
| Compares the current instance with another object of the same type.
|
|
virtual bool | equals (const item &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
◆ item() [1/7]
xtd::forms::checked_list_box::item::item |
( |
| ) |
|
|
default |
Initializes a new instance of the item class.
◆ item() [2/7]
xtd::forms::checked_list_box::item::item |
( |
const xtd::string & |
value | ) |
|
Initializes a new instance of the item class with specified value.
- Parameters
-
value | a string that represent the item. |
◆ item() [3/7]
xtd::forms::checked_list_box::item::item |
( |
const xtd::string & |
value, |
|
|
bool |
checked |
|
) |
| |
Initializes a new instance of the item class with specified value and check state.
- Parameters
-
value | a string that represent the item. |
checked | a bool that represent check state. |
◆ item() [4/7]
Initializes a new instance of the item class with specified value and checked state.
- Parameters
-
value | a string that represent the item. |
check_state | a bool that represent check state. |
◆ item() [5/7]
xtd::forms::checked_list_box::item::item |
( |
const xtd::string & |
value, |
|
|
const std::any & |
tag |
|
) |
| |
Initializes a new instance of the item class with specified value and tag.
- Parameters
-
value | a string that represent the item. |
tag | an object that contains data about the item. |
◆ item() [6/7]
xtd::forms::checked_list_box::item::item |
( |
const xtd::string & |
value, |
|
|
bool |
checked, |
|
|
const std::any & |
tag |
|
) |
| |
Initializes a new instance of the item class with specified value, check state and tag.
- Parameters
-
value | a string that represent the item. |
checked | a bool that represent check state. |
tag | an object that contains data about the item. |
◆ item() [7/7]
Initializes a new instance of the item class with specified value, check state and tag.
- Parameters
-
value | a string that represent the item. |
checked | a bool that represent check state. |
tag | an object that contains data about the item. |
◆ checked()
virtual bool xtd::forms::checked_list_box::item::checked |
( |
| ) |
const |
|
virtual |
Gets a value indicating whether the item is in the checked state.
- Returns
- true if the item is in the checked state; otherwise, false. The default value is false. If the three_state property is set to true, the checked property will return true for either a checked or indeterminate check_state.
◆ check_state()
Gets the state of the item.
- Returns
- One of the check_state enumeration values. The default value is unchecked.
The documentation for this class was generated from the following file: