ToolStripLabel Constructor (String, Image, Boolean, EventHandler, String)

 

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display, whether the ToolStripLabel acts as a link, and providing a Click event handler and name for the ToolStripLabel.

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

public ToolStripLabel(
	string text,
	Image image,
	bool isLink,
	EventHandler onClick,
	string name
)

Parameters

text
Type: System.String

The text to display on the ToolStripLabel.

image
Type: System.Drawing.Image

The Image to display on the ToolStripLabel.

isLink
Type: System.Boolean

true if the ToolStripLabel acts as a link; otherwise, false.

onClick
Type: System.EventHandler

A Click event handler.

name
Type: System.String

The name of the ToolStripLabel.

.NET Framework
Available since 2.0
Return to top
Show: