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
)
Public Shared Function Menu_AppendCustomItem (
menu As ToolStripDropDown,
control As Control,
keydown As KeyDownEventHandler
) As Boolean
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:
BooleanSee Also