Method InsertActiveObjectContextualMenuItem
InsertActiveObjectContextualMenuItem(MenuItemInsertionInfo, MenuItem, MenuItemInsertionPosition)
Inserts an item in the contextual menu which appears when an object of the scene is selected and the right button of the mouse is pressed.
Declaration
public Appli.MenuItem InsertActiveObjectContextualMenuItem(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. |
Remarks
Normally this function is called (once or several times) in
an OnAppStartAfter
plugin class method to add custom menu
items.
InsertActiveObjectContextualMenuItem(MenuItemInsertionInfo, StandardId, MenuItemInsertionPosition)
Inserts an item in the contextual menu which appears when an object of the scene is selected and the right button of the mouse is pressed.
Declaration
public Appli.MenuItem InsertActiveObjectContextualMenuItem(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. |
Remarks
Normally this function is called (once or several times) in
an OnAppStartAfter
plugin class method to add custom menu
items.