Grasshopper API
GH_DocumentObjectMenu_MoveItem Method (ToolStripItem, Boolean, String) |
Utility function for moving menu items.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static bool Menu_MoveItem( ToolStripItem item, bool insertBelow, params string[] targets )
Public Shared Function Menu_MoveItem ( item As ToolStripItem, insertBelow As Boolean, ParamArray targets As String() ) As Boolean
Parameters
- item
- Type: System.Windows.FormsToolStripItem
Item to move, it must already be part of the dropdown menu. - insertBelow
- Type: SystemBoolean
If true, the item will be inserted below the match, if false, above the match. - targets
- Type: SystemString
Names of move to targets, the item will be inserted next to the first name, if that fails the second, etc. etc.
Return Value
Type: BooleanTrue on success, false on failure.
