System.Windows.Forms.ToolStripLabel Class

Represents a nonselectable System.Windows.Forms.ToolStripItem that renders text and images and can display hyperlinks.

See Also: ToolStripLabel Members

Syntax

[System.Windows.Forms.Design.ToolStripItemDesignerAvailability(System.Windows.Forms.Design.ToolStripItemDesignerAvailability.ToolStrip)]
public class ToolStripLabel : ToolStripItem

Remarks

Use the System.Windows.Forms.ToolStripLabel class to create a label that can render text and images that can implement the ToolStripItem.TextAlign and ToolStripItem.ImageAlign properties. The System.Windows.Forms.ToolStripLabel also has many properties that enable it to display one or more hyperlinks, and other properties that modify the appearance and behavior of hyperlinks.

The System.Windows.Forms.ToolStripLabel is like a System.Windows.Forms.ToolStripButton that does not get focus by default and that does not render as pushed or highlighted.

System.Windows.Forms.ToolStripLabel as a hosted item supports access keys.

Use the LinkLabel.LinkColor, LinkLabel.LinkVisited, and LinkLabel.LinkBehavior properties on a System.Windows.Forms.ToolStripLabel to support link control in a System.Windows.Forms.ToolStrip.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0