xtd 0.2.0
Loading...
Searching...
No Matches

◆ length() [1/2]

size_t xtd::forms::link::length ( ) const
noexcept

Gets the number of characters in the link text.

Returns
The number of characters, including spaces, in the link text.
Remarks
To specify text from the xtd::forms::link_label to display as a link, set the xtd::forms::link_label::start property to the location in the text to start creating the link. After the xtd::forms::link_label::start property is set, set the value of the xtd::forms::link_label::length property to the number of characters, including the character position specified in the xtd::forms::link_label::start property, that you want to make the link text. For example, if you want to make the first word of the text "The quick brown fox" a link, you set the xtd::forms::link_label::start property to zero (0) and the xtd::forms::link_label::length property to three (3).