Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / ColorProperty Class / Implicit Type Conversion Operator / Implicit Type Conversion(ColorProperty,KnownColor) Operator
Color to store in the property.
Example
In This Topic
    Implicit Type Conversion(ColorProperty,KnownColor) Operator
    In This Topic
    Implicit conversion from System.Drawing.KnownColor to ColorProperty.
    Syntax
    public ColorProperty operator implicit( 
       KnownColor knownColor
    )

    Parameters

    knownColor
    Color to store in the property.

    Return Value

    New ColorProperty created from a given System.Drawing.KnownColor value.
    Example
    The following example shows how to convert a KnownColor to a ColorProperty.
    ColorProperty colorProperty = KnownColor.Blue;
    See Also