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

◆ visited() [2/2]

link & xtd::forms::link::visited ( bool  value)

Sets a value indicating whether the user has visited the link.

Parameters
valuetrue if the link has been visited; otherwise, false.
Returns
The current instance of xtd::forms::link_label::link.
Remarks
A xtd::forms::link_label control does not automatically denote that a link is a visited link. To display the link as a visited link, you can set the value of this property to true in an event handler for the xtd::forms::link_label::link_clicked event of a xtd::forms::link_label. A visited link is displayed using the color specified in the xtd::forms::link_label::visited_link_color property of the xtd::forms::link_label control. Once the form containing the xtd::forms::link_label control is closed, the all display state associated with the link is deleted. In order to retain the display state of the link, you need to store the display state of the link in a registry setting associated with your application.
Note
If you have only one link specified in a xtd::forms::link_label control, you can use the xtd::forms::link_label::link_visited property of the xtd::forms::link_label to specify the link as visited. You can also use the xtd::forms::link_label::link_visited property if you have multiple links defined, but the setting only applies to the first link defined in the control.