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 );
A MenuItem that represents the duplicated menu item.
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.
The following example clones a menu item and displays it in a ContextMenu. This example assumes that a TBD exists in a TBD.
MenuItem Class | MenuItem Members | System.WinForms Namespace | MenuItem.CloneMenu Overload List