Method InsertMenuItem
InsertMenuItem(MenuItemInsertionInfo, MenuItem, MenuItemInsertionPosition)
This function inserts a menu item or a separator into main menu of the KitchenDraw application.
Declaration
public Appli.MenuItem InsertMenuItem(Appli.MenuItemInsertionInfo menuItemInfo, Appli.MenuItem referenceMenuItem, Appli.MenuItemInsertionPosition menuItemPosition = MenuItemInsertionPosition.Before)
Parameters
Type | Name | Description |
---|---|---|
Appli.MenuItemInsertionInfo | menuItemInfo | Data for the new menu item. |
Appli.MenuItem | referenceMenuItem | The new menu item will be inserted
just before or after this one. You can pass |
Appli.MenuItemInsertionPosition | menuItemPosition |
Returns
Type | Description |
---|---|
Appli.MenuItem | The inserted menu item. |
InsertMenuItem(MenuItemInsertionInfo, int, int)
This function inserts a menu item or a separator into main menu of the KitchenDraw application.
Declaration
public Appli.MenuItem InsertMenuItem(Appli.MenuItemInsertionInfo menuItemInfo, int menuRank, int itemRank)
Parameters
Type | Name | Description |
---|---|---|
Appli.MenuItemInsertionInfo | menuItemInfo | Data for the new menu item. |
int | menuRank | Rank (zero-based) of a menu to which the item should be inserted (like File, Edit, Object, etc.) |
int | itemRank | Rank (zero-based) of an item before which the new item should be inserted. |
Returns
Type | Description |
---|---|
Appli.MenuItem | The inserted menu item. |
InsertMenuItem(MenuItemInsertionInfo, StandardId, MenuItemInsertionPosition)
This function inserts a menu item or a separator into main menu of the KitchenDraw application.
Declaration
public Appli.MenuItem InsertMenuItem(Appli.MenuItemInsertionInfo menuItemInfo, Appli.MenuItem.StandardId referenceMenuItemId, Appli.MenuItemInsertionPosition menuItemPosition = MenuItemInsertionPosition.Before)
Parameters
Type | Name | Description |
---|---|---|
Appli.MenuItemInsertionInfo | menuItemInfo | Data for the new menu item. |
Appli.MenuItem.StandardId | referenceMenuItemId | The new menu item will be inserted
just before or after this one. You can pass |
Appli.MenuItemInsertionPosition | menuItemPosition |
Returns
Type | Description |
---|---|
Appli.MenuItem | The inserted menu item. |