Click or drag to resize

GH_ActiveObjectAppendMenuItems Method

This function is called when a context menu is about to be displayed. Override it to set custom items. GH_ActiveObject will already populate the menu with default items, if you merely wish to insert object-specific menu item, consider overriding AppendAdditionalMenuItems instead.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public override bool AppendMenuItems(
	ToolStripDropDown menu
)

Parameters

menu
Type: System.Windows.FormsToolStripDropDown
Menu object to populate.

Return Value

Type: Boolean
If true, the menu will be displayed, if false the menu will be supressed.
See Also