MenuItem::MergeType Property
.NET Framework (current version)
Gets or sets a value indicating the behavior of this menu item when its menu is merged with another.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The assigned value is not one of the MenuMerge values. |
The merge type of a menu item indicates how the menu item behaves when it has the same merge order as another menu item being merged. You can use merged menus to create a consolidated menu based on two or more existing menus.
The following code example creates a MenuItem with the MergeType and MergeOrder specified so that the menu item is added to the merged menu at first position.
.NET Framework
Available since 1.1
Available since 1.1
Show: