Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / ColorProperty Class / Implicit Type Conversion Operator / Implicit Type Conversion(ColorProperty,String) Operator
Color to store in the property.
Example
In This Topic
    Implicit Type Conversion(ColorProperty,String) Operator
    In This Topic
    Implicit conversion from a string representation of color to ColorProperty.
    Syntax
    public ColorProperty operator implicit( 
       string colorName
    )

    Parameters

    colorName
    Color to store in the property.

    Return Value

    New ColorProperty created from the given System.String value.
    Example
    The following example shows how to convert a color as a string to a ColorProperty.
    ColorProperty hexColorProperty = "#0000ff";
    ColorProperty nameColorProperty = "blue";
    See Also