Click or drag to resize

GetBaseClassSetDefaultNumber Method

Sets a number as default value that will be returned if the user presses ENTER key during the get.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public void SetDefaultNumber(
	double defaultNumber
)

Parameters

defaultNumber
Type: SystemDouble
value for default number.
Remarks
Calling SetDefaultNumber will automatically handle setting the command prompt default and reacting to the user pressing ENTER. If the user presses ENTER to accept the default number, GetResult.Number is returned and RhinoGet.GotDefault() will return true. Calling SetDefaultNumber will clear any previous calls to SetDefaultString or SetDefaultPoint.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also