System.Windows.Forms.MenuItem.MergeMenu Method

Merges this System.Windows.Forms.MenuItem with another System.Windows.Forms.MenuItem and returns the resulting merged System.Windows.Forms.MenuItem.

Syntax

public virtual MenuItem MergeMenu ()

Returns

A System.Windows.Forms.MenuItem that represents the merged menu item.

Remarks

When you call this version of MenuItem.MergeMenu, the System.Windows.Forms.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 MenuItem.MergeMenu method is similar to calling the MenuItem.CloneMenu method that contains no parameters.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0