GH_DocumentObject.GetValue Method (String, Color)

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
)
Protected Function GetValue ( 
	valueName As String,
	default As Color
) As Color

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