This documentation is archived and is not being maintained.

MenuItem.MergeMenu Method ()

.NET Framework 1.1

Merges this MenuItem with another MenuItem and returns the resulting merged MenuItem.

[Visual Basic]
Overloads Public Overridable Function MergeMenu() As MenuItem
[C#]
public virtual MenuItem MergeMenu();
[C++]
public: virtual MenuItem* MergeMenu();
[JScript]
public function MergeMenu() : MenuItem;

Return Value

A MenuItem that represents the merged menu item.

Remarks

When you call this version of MergeMenu, the MenuItem returned is a copy of the current menu item that can be merged with another menu item without affecting the functionality of the current item. This version of the MergeMenu method is similar to calling the CloneMenu method that contains no parameters.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

MenuItem Class | MenuItem Members | System.Windows.Forms Namespace | MenuItem.MergeMenu Overload List

Show: