MenuItems MergeMenu MergeOrder MergeType
Not sure if these comments reflect reality or just the way things should be. Generally found the behavior very confusing, under documented, and most likely improperly implemented.
So I ended up writing my own menu merging functions.
MergeType as MenuMerge property of a MenuItem:
Add – The item will be added in a merge. Items appear in order, after existing items of the same or higher order.
Remove – The item is ignored in a merge.
Replace – Each replace item will appear after the Add/Remove items with equal order and replace the first Replace item with equal order.
MergeItems – The submenu items of the item are merged.
MergeOrder as int, zero based
Can’t use a MenuItem in more than one menu – use CloneMenu.
Menu.MergeMenu(Menu) – The order of the menu doesn’t matter. The order of the menuItems does.