GetBaseClass.AddOptionDouble Method (String, OptionDouble, String)

GetBaseClassAddOptionDouble Method (String, OptionDouble, String)

Adds a command line option to get numbers and automatically save the value.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int AddOptionDouble(
	string englishName,
	ref OptionDouble numberValue,
	string prompt
)
Public Function AddOptionDouble ( 
	englishName As String,
	ByRef numberValue As OptionDouble,
	prompt As String
) As Integer

Parameters

englishName
Type: SystemString
Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
numberValue
Type: Rhino.Input.CustomOptionDouble
Current value.
prompt
Type: SystemString
option prompt shown if the user selects this option. If null or empty, then the option name is used as the get number prompt.

Return Value

Type: Int32
option index value (>0) or 0 if option cannot be added.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also