NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MenuItem Constructor ()

Initializes a MenuItem with a blank caption.

[Visual Basic]
Overloads Public Sub New()
[C#]
public MenuItem();
[C++]
public: MenuItem();
[JScript]
public function MenuItem();

Remarks

Once you have created an blank TBD using this constructor, you can use the properties and methods of the TBD class to specify the appearance and behavior of your MenuItem.

Example [Visual Basic]

The following example creates a TBD using this version of the constructor.

[Visual Basic]

Public Sub CreateMyMenu()End Sub
   ' Create an empty menu item object.
   Dim MenuItem1 as MenuItem
   ' Intialize the menu item using the parameterless version of 
the constructor.
   Set MenuItem1 = New MenuItem
   ' Set the caption of the menu item.
   MenuItem1.Text = "&File"
End Sub

See Also

MenuItem Class | MenuItem Members | System.WinForms Namespace | MenuItem Constructor Overload List