Click or drag to resize

GH_DocumentObjectMenu_MoveItem Method (ToolStripItem, String)

Utility function for moving menu items.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static bool Menu_MoveItem(
	ToolStripItem item,
	params string[] precedingItems
)

Parameters

item
Type: System.Windows.FormsToolStripItem
Item to move, it must already be part of a dropdown menu.
precedingItems
Type: SystemString
Names of preceding items, the item will be inserted below the first name, if that fails the second, etc. etc.

Return Value

Type: Boolean
True on success, false on failure.
See Also