GH_DocumentObject.Menu_AppendDigitScrollerItem Method

GH_DocumentObjectMenu_AppendDigitScrollerItem Method

Utility function for inserting a digit scroller into menus.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static GH_DigitScrollerBase Menu_AppendDigitScrollerItem(
	ToolStripDropDown menu,
	decimal min,
	decimal max,
	decimal value,
	int decimals
)
Public Shared Function Menu_AppendDigitScrollerItem ( 
	menu As ToolStripDropDown,
	min As Decimal,
	max As Decimal,
	value As Decimal,
	decimals As Integer
) As GH_DigitScrollerBase

Parameters

menu
Type: System.Windows.FormsToolStripDropDown
min
Type: SystemDecimal
max
Type: SystemDecimal
value
Type: SystemDecimal
decimals
Type: SystemInt32

Return Value

Type: GH_DigitScrollerBase
The digit scroller object that was inserted into the menu.
See Also