GH_DocumentObject.Menu_MoveItem Method (ToolStripItem, String[])

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
)
Public Shared Function Menu_MoveItem ( 
	item As ToolStripItem,
	ParamArray precedingItems As String()
) As Boolean

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