ToolStripLabel::ActiveLinkColor Property

 

Gets or sets the color used to display an active link.

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

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

Property Value

Type: System.Drawing::Color

A Color that represents the color to display an active link. The default color is specified by the system. Typically, this color is Color.Red.

An active link is a link that is in the process of being clicked. This is similar to the depressed state of a Button control. You can use this property to specify the color that the link is displayed in when the link is in the process of being clicked.

There are a number of colors associated with a link. The LinkColor specifies the color of all links displayed in the LinkLabel control. The VisitedLinkColor property enables you to specify the color of a link after it has 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 in the process of being clicked.

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: