Click or drag to resize

GetBaseClassAddOptionColor Method (LocalizeStringPair, OptionColor)

Add a command line option to get colors and automatically save the value.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public int AddOptionColor(
	LocalizeStringPair optionName,
	ref OptionColor colorValue
)

Parameters

optionName
Type: Rhino.UILocalizeStringPair
option description
colorValue
Type: Rhino.Input.CustomOptionColor
The current color value.

Return Value

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