Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / ColorProperty Class / ColorProperty Constructor / ColorProperty Constructor(KnownColor)
An element from the System.Drawing.KnownColor enumeration.
Example
In This Topic
    ColorProperty Constructor(KnownColor)
    In This Topic
    Creates a new instance of the ColorProperty with the specified color created from a predefined color.
    Syntax
    public ColorProperty( 
       KnownColor knownColor
    )

    Parameters

    knownColor
    An element from the System.Drawing.KnownColor enumeration.
    Example
    The following example shows how to create a new ColorProperty from a KnownColor enumeration.
    ColorProperty colorProperty = new ColorProperty(KnownColor.Red);
    See Also