Click or drag to resize

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
)

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