GetBaseClassAddOptionDouble Method (LocalizeStringPair, OptionDouble, String) |
Adds a command line option to get numbers and automatically saves the value.
Namespace:
Rhino.Input.Custom
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public int AddOptionDouble(
LocalizeStringPair optionName,
ref OptionDouble numberValue,
string prompt
)
Public Function AddOptionDouble (
optionName As LocalizeStringPair,
ByRef numberValue As OptionDouble,
prompt As String
) As Integer
Parameters
- optionName
- Type: Rhino.UILocalizeStringPair
Must only consist of letters and numbers (no characters list periods, spaces, or dashes)
- numberValue
- Type: Rhino.Input.CustomOptionDouble
The current number 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.
See Also