ToolStripLabel Constructor (String^, Image^, Boolean, EventHandler^, String^)
.NET Framework (current version)
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.
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
Available since 2.0
Show: