ToolStripMenuItem Constructor (String^)

 

Initializes a new instance of the ToolStripMenuItem class that displays the specified text.

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

public:
ToolStripMenuItem(
	String^ text
)

Parameters

text
Type: System::String^

The text to display on the menu item.

Use the ToolStripMenuItem constructor to create a ToolStripMenuItem with the specified name.

The following code example demonstrates a use of the ToolStripMenuItem constructor.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: