Gets or sets a value that indicates the behavior of this menu item when its menu is merged with another.
[Visual Basic] Public Property MergeType As MenuMerge [C#] public MenuMerge MergeType {get; set;} [C++] public: __property MenuMerge get_MergeType(); public: __property void set_MergeType(MenuMerge); [JScript] public function get MergeType() : MenuMerge; public function set MergeType(MenuMerge);
A MenuMerge value that represents the menu item's merge type.
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 example sets the MergeType and MergeOrder for a menu item that is to be added to the merged menu and has a merge order of 1.
[Visual Basic]
Public Sub InitMyFileMenu() ' Set the MergeType to Add so that the menu item is added to the merged menu. MenuItem1.MergeType = MenuMerge.Add ' Set the MergeOrder to 1 so that this menu item is placed lower in the merged menu order. MenuItem1.MergeOrder = 1 End Sub
MenuItem Class | MenuItem Members | System.WinForms Namespace | MenuMerge