MergeMenu Method
Collapse the table of content
Expand the table of content

MenuItem.MergeMenu Method ()


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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual MenuItem MergeMenu()

Return Value

Type: System.Windows.Forms.MenuItem

A MenuItem that represents the merged menu item.

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.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft