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 | |
| const xtd::string & | description () const noexcept |
| Gets a text description of the link. | |
| link & | description (const xtd::string &value) |
| Sets a text description of the link. | |
| bool | enabled () const noexcept |
| Gets a value indicating whether the link is enabled. | |
| link & | enabled (bool value) |
| Sets a value indicating whether the link is enabled. | |
| xtd::usize | length () const noexcept |
| Gets the number of characters in the link text. | |
| link & | length (xtd::usize value) |
| Sets the number of characters in the link text. | |
| const xtd::any_object & | link_data () const noexcept |
| Gets the data associated with the link. | |
| link & | link_data (const xtd::any_object &value) |
| Sets the data associated with the link. | |
| const xtd::string & | name () const noexcept |
| Gets the name of the xtd::forms::link_label::link. | |
| link & | name (const xtd::string &value) |
| Sets the name of the xtd::forms::link_label::link. | |
| xtd::usize | start () const noexcept |
| Gets the starting location of the link within the text of the xtd::forms::link_label::link. | |
| link & | start (xtd::usize value) |
| Sets the starting location of the link within the text of the xtd::forms::link_label::link. | |
| const xtd::any_object & | tag () const noexcept |
| Gets the object that contains data about the xtd::forms::link_label::link. | |
| link & | tag (const xtd::any_object &value) |
| Sets the object that contains data about the xtd::forms::link_label::link. | |
| bool | visited () const noexcept |
| Gets a value indicating whether the user has visited the link. | |
| link & | visited (bool value) |
| Sets a value indicating whether the user has visited the link. | |
Public Methods | |
| bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| bool | equals (const link &other) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| xtd::usize | get_hash_code () const noexcept 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. |
|
noexcept |
Gets a text description of the link.
| link & xtd::forms::link::description | ( | const xtd::string & | value | ) |
Sets a text description of the link.
| value | A xtd::string representing a text description of the link. |
|
noexcept |
Gets a value indicating whether the link is enabled.
| link & xtd::forms::link::enabled | ( | bool | value | ) |
Sets a value indicating whether the link is enabled.
| value | true if the link is enabled; otherwise, false. |
|
noexcept |
Gets the number of characters in the link text.
| link & xtd::forms::link::length | ( | xtd::usize | value | ) |
Sets the number of characters in the link text.
| value | The number of characters, including spaces, in the link text. |
|
noexcept |
Gets the data associated with the link.
| link & xtd::forms::link::link_data | ( | const xtd::any_object & | value | ) |
Sets the data associated with the link.
| value | A xtd::any_object object representing the data associated with the link. |
|
noexcept |
Gets the name of the xtd::forms::link_label::link.
| link & xtd::forms::link::name | ( | const xtd::string & | value | ) |
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 (""). |
|
noexcept |
Gets the starting location of the link within the text of the xtd::forms::link_label::link.
| link & xtd::forms::link::start | ( | xtd::usize | value | ) |
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. |
|
noexcept |
Gets the object that contains data about the xtd::forms::link_label::link.
| link & xtd::forms::link::tag | ( | const xtd::any_object & | value | ) |
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. |
|
noexcept |
Gets a value indicating whether the user has visited the link.
| link & xtd::forms::link::visited | ( | bool | value | ) |
Sets a value indicating whether the user has visited the link.
| value | true if the link has been visited; otherwise, false. |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.