Easy to use color getter.
Namespace:
Rhino.Input
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public static Result GetColor(
string prompt,
bool acceptNothing,
ref Color color
)
Public Shared Function GetColor (
prompt As String,
acceptNothing As Boolean,
ByRef color As Color
) As Result
Parameters
- prompt
- Type: SystemString
Command prompt. - acceptNothing
- Type: SystemBoolean
If true, the user can press enter. - color
- Type: System.DrawingColor
Color value returned here. also used as default color.
Return Value
Type:
ResultCommands.Result.Success - got color.
Commands.Result.Nothing - user pressed enter.
Commands.Result.Cancel - user cancel color getting.
Remarks
If you need options or more advanced user interface, then use GetColor class.
See Also