ToolStripLabel::LinkVisited Property

 

Gets or sets a value indicating whether a link should be displayed as though it were visited.

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

public:
property bool LinkVisited {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if links should display as though they were visited; otherwise, false. The default is false.

A LinkLabel 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 click event of the LinkLabel. A visited link is displayed using the color specified in the VisitedLinkColor property of the ToolStripLabel control.

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: