RhinoCommon API
GetBaseClassSetDefaultInteger 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)

public void SetDefaultInteger( int defaultValue )
Public Sub SetDefaultInteger ( defaultValue As Integer )
Parameters
- defaultValue
- Type: SystemInt32
value for default number.

Calling SetDefaultInteger will automatically handle setting the command prompt default and
reacting to the user pressing ENTER. If the user presses ENTER to accept the default integer,
GetResult.Number is returned and CRhinoGet.GotDefault() will return true. Calling
SetDefaultNumber will clear any previous calls to SetDefaultString or SetDefaultPoint.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14