ToolStripLabel::VisitedLinkColor Property

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property Color VisitedLinkColor {
	Color get();
	void set(Color value);
}

Property Value

Type: System.Drawing::Color

A 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 Color.Purple.

This property enables you to specify the color that is displayed for all links in the ToolStripLabel that have been visited by the user.

System_CAPS_noteNote

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 Color.Red and this property is set to Color.Red, the text is not shown properly when the link is displayed as a visited link.

The following code example demonstrates how to initialize a ToolStripLabel to contain a link by setting the IsLink, LinkColor, ActiveLinkColor, VisitedLinkColor, LinkVisited and LinkBehavior properties.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: