GH_DocumentObjectMenu_AppendItem Method (ToolStrip, String, EventHandler, Image, Boolean, 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,
Image icon,
bool enabled,
bool checked
)
Public Shared Function Menu_AppendItem (
menu As ToolStrip,
text As String,
click As EventHandler,
icon As Image,
enabled As Boolean,
checked As Boolean
) As ToolStripMenuItem
Parameters
- menu
- Type: System.Windows.FormsToolStrip
Menu to append item to. - text
- Type: SystemString
Item text. - click
- Type: SystemEventHandler
Delegate that handles click events. - icon
- Type: System.DrawingImage
Item icon. - enabled
- Type: SystemBoolean
If true, the item will be enabled. - checked
- Type: SystemBoolean
If true, the item will be checked.
Return Value
Type:
ToolStripMenuItemThe appended item.
See Also