Click or drag to resize

GH_DocumentObjectMenu_AppendCustomItem Method (ToolStripDropDown, Control, GH_MenuCustomControlKeyDownEventHandler)

Utility function for inserting exotic controls into dropdown menus.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static bool Menu_AppendCustomItem(
	ToolStripDropDown menu,
	Control control,
	KeyDownEventHandler keydown
)

Parameters

menu
Type: System.Windows.FormsToolStripDropDown
Dropdown to add a control to.
control
Type: System.Windows.FormsControl
Control to insert.
keydown
Type: KeyDownEventHandler
Delegate for key-presses.

Return Value

Type: Boolean
See Also