ToolStripLabel::LinkBehavior Property
.NET Framework (current version)
Gets or sets a value that represents the behavior of a link.
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::LinkBehaviorOne 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: