RhinoCommon API
GetBaseClassSetDefaultColor Method |
Sets a color 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 SetDefaultColor( Color defaultColor )
Public Sub SetDefaultColor ( defaultColor As Color )
Parameters
- defaultColor
- Type: System.DrawingColor
value for default color.

Calling SetDefaultColor will automatically handle setting the command prompt default and
reacting to the user pressing ENTER. If the user presses ENTER to accept the default color,
GetResult.Color is returned and RhinoGet.GotDefault() will return true. Calling
SetDefaultColor will clear any previous calls to SetDefaultString or SetDefaultPoint.

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