Click or drag to resize
GetBaseClassAddOptionColor Method (String, OptionColor, String)
Add a command line option to get colors and automatically save the value.

Namespace: Rhino.Input.Custom
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public int AddOptionColor(
	string englishName,
	ref OptionColor colorValue,
	string prompt
)

Parameters

englishName
Type: SystemString
option description
colorValue
Type: Rhino.Input.CustomOptionColor
The current color value.
prompt
Type: SystemString
The command prompt will show this during picking.

Return Value

Type: Int32
option index value (>0) or 0 if option cannot be added.
See Also