Class Color
Specifies the color to use to identify the Group, Rule, SecurityClearance or Zone.
public class Color
- Inheritance
-
Color
- Inherited Members
Constructors
Color(int, bool)
Initializes a new instance of the Color class.
public Color(int rgba, bool hasAlpha)
Parameters
Color(int, int, int, int)
Initializes a new instance of the Color class.
public Color(int r, int g, int b, int a = 255)
Parameters
Fields
Black
The black color (RGB values 0, 0, 0).
public static readonly Color Black
Field Value
Blue
The blue color (RGB values 0, 0, 255).
public static readonly Color Blue
Field Value
Empty
The empty color space (RGB values 0, 0, 0).
public static readonly Color Empty
Field Value
Green
The green color (RGB values 0, 255, 0).
public static readonly Color Green
Field Value
Red
The red color (RGB values 255, 0, 0).
public static readonly Color Red
Field Value
White
The white color (RGB values 255, 255, 255).
public static readonly Color White
Field Value
Properties
A
Gets returns the alpha component of the color space (opacity) in the range 0-255.
public int A { get; }
Property Value
B
Gets returns the blue component of the color space in the range 0-255 from the default sRGB space.
public int B { get; }
Property Value
G
Gets returns the green component of the color space in the range 0-255 from the default sRGB. space.
public int G { get; }
Property Value
R
Gets returns the red component of the color space in the range 0-255 from the default sRGB. space.
public int R { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToArgb()
Return the int value of the alpha, red, green and blue value of the color.
public int ToArgb()
Returns
ToString()
public override string ToString()