MarkdownMonsterAddin.AddMenuItem

Allows insertion of a menu item

public bool AddMenuItem(MenuItem mitem,
	string menuItemNameForInsertionAfter,
	string menuItemTextForInsertionAfter,
	int mode)

Parameters

mitem
The menu item to insert

menuItemNameForInsertionAfter
Name of the main menuitem element to insert before or after - find in MainWindow.xaml or with Debug Tools

menuItemTextForInsertionAfter
Text of the menuitem element to insert bfore or after (use if there's is no explicit Name for the item)

mode
0 - insert after, 1 - insert before, 2 - replace


See also:

Class MarkdownMonsterAddin

© West Wind Technologies, 2019 • Updated: 01/06/19
Comment or report problem with topic