Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / ColorProperty Class / ColorProperty Constructor / ColorProperty Constructor(String)
The string representation of the color. Valid representations are hexadecimal, HTML color, or name of predefined color.
Example
In This Topic
    ColorProperty Constructor(String)
    In This Topic
    Creates a new instance of the ColorProperty with the specified color, created from a string representation of color.
    Syntax
    public ColorProperty( 
       string color
    )

    Parameters

    color
    The string representation of the color. Valid representations are hexadecimal, HTML color, or name of predefined color.
    Exceptions
    ExceptionDescription
    color is not a valid color name.
    Example
    The following example shows how to create a new ColorProperty from text defined color.
    ColorProperty hexColorProperty = new ColorProperty("#ff0000");
    ColorProperty nameColorProperty = new ColorProperty("red");
    See Also