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

◆ visited_link_color() [1/2]

xtd::drawing::color xtd::forms::link_label::visited_link_color ( ) const
noexcept

Gets the color used when displaying a link that has been previously visited.

Returns
A xtd::drawing::color that represents the color used to display links that have been visited. The default color is specified by the system, typically this color is xtd::drawing::color::purple.
Remarks
This property enables you to specify the color that is displayed for all links in the xtd::forms::link_label xtd::.forms that have been visited by the user.
There are a number of colors associated with a link. All links in the xtd::forms::link_label are initially displayed with the color defined in the xtd::forms::link_label::link_color property. The xtd::forms::link_label::active_link_color property enables you to specify the color of the link when it is in the process of being clicked. When a link is disabled, the xtd::forms::link_label::disabled_link_color is used to display the link in a disabled state.
Note
When setting this property, ensure that the color you are setting the property to does not conflict with the color of the control's background or the text does not display properly. For example, if the background color of the control is xtd::drawing::color::red and this property is set to xtd::drawing::color::rRed, the text is not shown properly when the link is displayed as a visited link.
Remarks
The default color of the xtd::forms::link_label::active_link_color, xtd::forms::link_label::disabled_link_color, xtd::forms::link_label::link_color and xtd::forms::link_label::visited_link_color properties may be different on operating systems other than Windows with ligh theme.