Allows insertion of a menu item relative to another menu item by name or menu text
public bool AddMenuItem(MenuItem mitem, string menuItemNameToFind, string menuItemTextToFind, AddMenuItemModes addMode)
Parameters
mitem
The menu item to insert
menuItemNameToFind
Name of the main menuitem element to insert before or after - find in MainWindow.xaml or with Debug Tools
menuItemTextToFind
Text of the menuitem element to insert bfore or after (use if there's is no explicit Name for the item).
Note: Menu text must include any mnemonics that might be used in the menu item's text
addMode
Determines where the item is to be inserted
See also:
Class MarkdownMonsterAddin© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic