Represent an item contained in the domain_up_down::object_collection collection.
Public Constructors | |
| 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, const xtd::any_object &tag) | |
| Initializes a new instance of the item class with specified value and tag. | |
Public Properties | |
| virtual auto | value () const noexcept -> const xtd::string & |
| Gets the value of the item. | |
| virtual auto | tag () const noexcept -> const xtd::any_object & |
| Gets the tag of the item. | |
Public Methods | |
| auto | compare_to (const item &value) const noexcept -> xtd::int32 override |
| Compares the current instance with another object of the same type. | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const item &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a string containing the vague of the item. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | compare_to (const item &obj) const noexcept -> xtd::int32=0 |
| Compares the current instance with another object of the same type. | |
| virtual auto | equals (const item &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the item class.
| xtd::forms::domain_up_down::item::item | ( | const xtd::string & | value | ) |
Initializes a new instance of the item class with specified value.
| value | a string that represent the item. |
| xtd::forms::domain_up_down::item::item | ( | const xtd::string & | value, |
| const xtd::any_object & | tag ) |
Initializes a new instance of the item class with specified value and tag.
| value | a string that represent the item. |
| tag | an object that contains data about the item. |
|
nodiscardvirtualnoexcept |
Gets the value of the item.
|
virtualnoexcept |
Gets the tag of the item.
|
nodiscardoverridenoexcept |
Compares the current instance with another object of the same type.
| obj | An object to compare with this instance. |
| Value | Condition |
|---|---|
| Less than zero | This instance is less than obj. |
| Zero | This instance is equal to obj. |
| Greater than zero | This instance is greater than obj. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
nodiscardoverridevirtualnoexcept |
Returns a string containing the vague of the item.
Reimplemented from xtd::object.