Grasshopper API
GH_DocumentObjectMenu_AppendSeparator Method |
Utility function for appending separators to a menu dropdown.
If the dropdown is empty or if it already has a separator at the bottom, nothing will happen.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static ToolStripSeparator Menu_AppendSeparator( ToolStrip menu )
Public Shared Function Menu_AppendSeparator ( menu As ToolStrip ) As ToolStripSeparator
Parameters
- menu
- Type: System.Windows.FormsToolStrip
Menu to append separator to.
Return Value
Type: ToolStripSeparatorThe appended separator or null if no separator was appended.
