Click or drag to resize

GH_DocumentObjectMenu_AppendItem Method (ToolStrip, String, EventHandler, Boolean)

Utility function for appending generic menu items.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static ToolStripMenuItem Menu_AppendItem(
	ToolStrip menu,
	string text,
	EventHandler click,
	bool enabled
)

Parameters

menu
Type: System.Windows.FormsToolStrip
Menu to append item to.
text
Type: SystemString
Item text.
click
Type: SystemEventHandler
Delegate that handles click events. If nothing, the click event will not be handled.
enabled
Type: SystemBoolean
If true, the item will be enabled.

Return Value

Type: ToolStripMenuItem
The appended item
See Also