Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / ColorProperty Class / ColorProperty Constructor / ColorProperty Constructor(Single,Single,Single,Single)
The alpha component value for the color. Valid values are 0 through 1.
The red component value for the color. Valid values are 0 through 1.
The green component value for the color. Valid values are 0 through 1.
The blue component value for the color. Valid values are 0 through 1.
Example
In This Topic
    ColorProperty Constructor(Single,Single,Single,Single)
    In This Topic
    Creates a new instance of the ColorProperty with ARGB float components.
    Syntax
    public ColorProperty( 
       float alpha,
       float red,
       float green,
       float blue
    )

    Parameters

    alpha
    The alpha component value for the color. Valid values are 0 through 1.
    red
    The red component value for the color. Valid values are 0 through 1.
    green
    The green component value for the color. Valid values are 0 through 1.
    blue
    The blue component value for the color. Valid values are 0 through 1.
    Exceptions
    ExceptionDescription
    alpha, red, green or blue is less than 0 or greater than 1.
    Remarks

    Internally the R/G/B/A values are still stored as Bytes. Fractions are rounded down.

    Example
    The following example shows how to create a new ColorProperty from ARGB float components.
    ColorProperty colorProperty = new ColorProperty(1f, 1f, 0.4f, 0f);
    See Also