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.CloneMenu (MenuItem)

Creates a copy of the specified menu item.

[Visual Basic]
Overloads Protected Sub CloneMenu( _
   ByVal itemSrc As MenuItem _
)
[C#]
protected void CloneMenu(
   MenuItem itemSrc
);
[C++]
protected: void CloneMenu(
   MenuItem* itemSrc
);
[JScript]
protected function CloneMenu(
   itemSrc : MenuItem
);

Parameters

itemSrc
[To be supplied.]

Return Value

A MenuItem that represents the duplicated menu item.

Remarks

Call this method to create copies of menu items that you have already created for use in a context menu or another menu structure within your application. This version of TBD allows you to specify a specific TBD to copy instead of this menu item.

Example

The following example clones a menu item and displays it in a ContextMenu. This example assumes that a TBD exists in a TBD.

See Also

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