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

 

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.

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

public:
ToolStripLabel(
	String^ text,
	Image^ image,
	bool isLink,
	EventHandler^ onClick
)

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.

.NET Framework
Available since 2.0
Return to top
Show: