System.Web.UI.WebControls Namespace MenuItem Class
.NET Framework version 2.0
Initializes a new instance of the MenuItem class with the specified menu text.
[ VB ]
Overloads Public Sub New ( _
ByVal text As String _
)
[ C# ]
public MenuItem (
string text
);
[ C++ ]
public: MenuItem (
String* text
);
[ JScript ]
public function MenuItem (
text : String
);
- text
- The text to display for the MenuItem.
Use this constructor to initialize a new instance of the MenuItem class using the specified menu text.
The following table shows initial property values for an instance of MenuItem.
Property |
Initial Value |
Text |
The value of the text parameter. |
MenuItem Members MenuItem Constructor Overload List