KitchenDraw SDK 2
Show / Hide Table of Contents

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 null to insert the item to the end of menu.

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 null to insert the item to the end of menu.

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.

In this article
Back to top Generated by DocFX