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

    Parameters

    alpha
    The alpha component value for the color. Valid values are 0 through 255.
    red
    The red component value for the color. Valid values are 0 through 255.
    green
    The green component value for the color. Valid values are 0 through 255.
    blue
    The blue component value for the color. Valid values are 0 through 255.
    Exceptions
    ExceptionDescription
    alpha, red, green or blue is less than 0 or greater than 255.
    Example
    The following example shows how to create a new ColorProperty from ARGB.
    ColorProperty colorProperty = new ColorProperty(255, 255, 102, 0);
    See Also