Represents a link within a xtd::forms::link_label control.
Public Constructors | |
| link () | |
| Initializes a new instance of the xtd::forms::link class. | |
| link (xtd::usize start, xtd::usize length) | |
| Initializes a new instance of the xtd::forms::link_label::link class with the specified starting location and number of characters after the starting location within the xtd::forms::link_label. | |
| link (xtd::usize start, xtd::usize length, const xtd::any_object &link_data) | |
| Initializes a new instance of the xtd::forms::link_label::link class with the specified starting location, number of characters after the starting location within the xtd::forms::link_label, and the data associated with the link. | |
Public Properties | |
| auto | description () const noexcept -> const xtd::string & |
| Gets a text description of the link. | |
| auto | description (const xtd::string &value) -> link & |
| Sets a text description of the link. | |
| auto | enabled () const noexcept -> bool |
| Gets a value indicating whether the link is enabled. | |
| auto | enabled (bool value) -> link & |
| Sets a value indicating whether the link is enabled. | |
| auto | length () const noexcept -> xtd::usize |
| Gets the number of characters in the link text. | |
| auto | length (xtd::usize value) -> link & |
| Sets the number of characters in the link text. | |
| auto | link_data () const noexcept -> const xtd::any_object & |
| Gets the data associated with the link. | |
| auto | link_data (const xtd::any_object &value) -> link & |
| Sets the data associated with the link. | |
| auto | name () const noexcept -> const xtd::string & |
| Gets the name of the xtd::forms::link_label::link. | |
| auto | name (const xtd::string &value) -> link & |
| Sets the name of the xtd::forms::link_label::link. | |
| auto | start () const noexcept -> xtd::usize |
| Gets the starting location of the link within the text of the xtd::forms::link_label::link. | |
| auto | start (xtd::usize value) -> link & |
| Sets the starting location of the link within the text of the xtd::forms::link_label::link. | |
| auto | tag () const noexcept -> const xtd::any_object & |
| Gets the object that contains data about the xtd::forms::link_label::link. | |
| auto | tag (const xtd::any_object &value) -> link & |
| Sets the object that contains data about the xtd::forms::link_label::link. | |
| auto | visited () const noexcept -> bool |
| Gets a value indicating whether the user has visited the link. | |
| auto | visited (bool value) -> link & |
| Sets a value indicating whether the user has visited the link. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const link &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. | |
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 | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| virtual auto | equals (const link &) 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. | |
| xtd::forms::link::link | ( | ) |
Initializes a new instance of the xtd::forms::link class.
| xtd::forms::link::link | ( | xtd::usize | start, |
| xtd::usize | length ) |
Initializes a new instance of the xtd::forms::link_label::link class with the specified starting location and number of characters after the starting location within the xtd::forms::link_label.
| start | The zero-based starting location of the link area within the text of the xtd::forms::link_label. |
| length | The number of characters, after the starting character, to include in the link area. |
| xtd::forms::link::link | ( | xtd::usize | start, |
| xtd::usize | length, | ||
| const xtd::any_object & | link_data ) |
Initializes a new instance of the xtd::forms::link_label::link class with the specified starting location, number of characters after the starting location within the xtd::forms::link_label, and the data associated with the link.
| start | The zero-based starting location of the link area within the text of the xtd::forms::link_label. |
| length | The number of characters, after the starting character, to include in the link area. |
| link_data | The data associated with the link. |
|
nodiscardnoexcept |
Gets a text description of the link.
| auto xtd::forms::link::description | ( | const xtd::string & | value | ) | -> link & |
Sets a text description of the link.
| value | A xtd::string representing a text description of the link. |
|
nodiscardnoexcept |
Gets a value indicating whether the link is enabled.
| auto xtd::forms::link::enabled | ( | bool | value | ) | -> link & |
Sets a value indicating whether the link is enabled.
| value | true if the link is enabled; otherwise, false. |
|
nodiscardnoexcept |
Gets the number of characters in the link text.
| auto xtd::forms::link::length | ( | xtd::usize | value | ) | -> link & |
Sets the number of characters in the link text.
| value | The number of characters, including spaces, in the link text. |
|
nodiscardnoexcept |
Gets the data associated with the link.
| auto xtd::forms::link::link_data | ( | const xtd::any_object & | value | ) | -> link & |
Sets the data associated with the link.
| value | A xtd::any_object object representing the data associated with the link. |
|
nodiscardnoexcept |
Gets the name of the xtd::forms::link_label::link.
| auto xtd::forms::link::name | ( | const xtd::string & | value | ) | -> link & |
Sets the name of the xtd::forms::link_label::link.
| value | A xtd::string representing the name of the xtd::forms::link_label::link. The default value is the empty string (""). |
|
nodiscardnoexcept |
Gets the starting location of the link within the text of the xtd::forms::link_label::link.
| auto xtd::forms::link::start | ( | xtd::usize | value | ) | -> link & |
Sets the starting location of the link within the text of the xtd::forms::link_label::link.
| value | The location within the text of the the xtd::forms::link_label control where the link starts. |
|
nodiscardnoexcept |
Gets the object that contains data about the xtd::forms::link_label::link.
| auto xtd::forms::link::tag | ( | const xtd::any_object & | value | ) | -> link & |
Sets the object that contains data about the xtd::forms::link_label::link.
| value | An xtd::any_object object that contains data about the control. The default has no value. |
|
nodiscardnoexcept |
Gets a value indicating whether the user has visited the link.
| auto xtd::forms::link::visited | ( | bool | value | ) | -> link & |
Sets a value indicating whether the user has visited the link.
| value | true if the link has been visited; otherwise, false. |
|
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.