RhinoCommon API
RhinoGetGetInteger Method (String, Boolean, Int32, Int32, Int32) |
Easy to use number getter.
Namespace: Rhino.Input
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Result GetInteger( string prompt, bool acceptNothing, ref int outputNumber, int lowerLimit, int upperLimit )
Public Shared Function GetInteger ( prompt As String, acceptNothing As Boolean, ByRef outputNumber As Integer, lowerLimit As Integer, upperLimit As Integer ) As Result
Parameters
- prompt
- Type: SystemString
The command prompt. - acceptNothing
- Type: SystemBoolean
If true, the user can press enter. - outputNumber
- Type: SystemInt32
default number is set to this value and number value returned here. - lowerLimit
- Type: SystemInt32
The minimum allowed value. - upperLimit
- Type: SystemInt32
The maximum allowed value.
Return Value
Type: ResultCommands.Result.Success - got number Commands.Result.Nothing - user pressed enter Commands.Result.Cancel - user cancel number getting.

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