Click or drag to resize

GH_DocumentObjectGetValue Method (String, Color)

Get a color value from the component value table.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
protected Color GetValue(
	string valueName,
	Color default
)

Parameters

valueName
Type: SystemString
Name of color to retrieve.
default
Type: System.DrawingColor
Default value to return in case of missing named value.

Return Value

Type: Color
The color value with the given name of the default value.
See Also