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

◆ link_color() [2/2]

link_label & xtd::forms::link_label::link_color ( const xtd::drawing::color color)

Sets the color used when displaying a normal link.

Parameters
valueA xtd::drawing::color that represents the color used to displaying a normal link. The default color is specified by the system, typically this color is xtd::drawing::color::blue.
Returns
Current control.
Remarks
This property enables you to specify the color that is initially displayed for all links in the xtd::forms::link_label.
There are a number of colors associated with a link. 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. The xtd::forms::link_label::visited_link_color property enables you to specify the color of a link after it has been visited by the user. 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::red, the text of the link is not shown properly.
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.