GH_ConvertToColor_Primary Method |
Performs a direct cast from Drawing.Color, GH_Color and OnColor.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntaxpublic 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:
BooleanTrue on success, false on failure.
See Also