ToolStripLabel::LinkBehavior Property

 

Gets or sets a value that represents the behavior of a link.

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

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

Property Value

Type: System.Windows.Forms::LinkBehavior

One of the LinkBehavior values. The default is LinkBehavior.SystemDefault.

This property enables you to specify the behavior of links when they are displayed in the control. For example, if you want links to be displayed with an underline only when the mouse pointer is over a link, you can set this property to LinkBehavior.HoverUnderline. For more information about the types of behaviors that can be associated with a link, see LinkBehavior.

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: