GH_Convert.ToColor_Primary Method

GH_ConvertToColor_Primary Method

Performs a direct cast from Drawing.Color, GH_Color and OnColor.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static bool ToColor_Primary(
	Object data,
	ref Color destination
)
Public Shared Function ToColor_Primary ( 
	data As Object,
	ByRef destination As Color
) As Boolean

Parameters

data
Type: SystemObject
Data to convert.
destination
Type: System.DrawingColor
Target for value assignment.

Return Value

Type: Boolean
True on success, false on failure.
See Also