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

◆ length() [2/2]

link & xtd::forms::link::length ( size_t  value)

Sets the number of characters in the link text.

Parameters
valueThe number of characters, including spaces, in the link text.
Returns
The current instance of xtd::forms::link_label::link.
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).