Struct Color
Represents a graphic color.
Assembly: cs.temp.dll.dll
Syntax
[AvailableSinceVersion(7, 6, 0, 0)]
public struct Color : IEquatable<Color>
Constructors
Color(Byte, Byte, Byte)
Initializes a new instance of the Color structure with
its RGB intensities.
Declaration
public Color(byte inR, byte inG, byte inB)
Parameters
Type |
Name |
Description |
Byte |
inR |
Red intensity.
|
Byte |
inG |
Green intensity.
|
Byte |
inB |
Blue intensity.
|
Fields
Black
Declaration
public static readonly Color Black
Field Value
Blue
Declaration
public static readonly Color Blue
Field Value
Cyan
Declaration
public static readonly Color Cyan
Field Value
DarkBlue
Declaration
public static readonly Color DarkBlue
Field Value
DarkCyan
Declaration
public static readonly Color DarkCyan
Field Value
DarkGray
Declaration
public static readonly Color DarkGray
Field Value
DarkGreen
Declaration
public static readonly Color DarkGreen
Field Value
Empty
Declaration
public static readonly Color Empty
Field Value
Gray
Declaration
public static readonly Color Gray
Field Value
Green
Declaration
public static readonly Color Green
Field Value
LightBlue
Declaration
public static readonly Color LightBlue
Field Value
LightGray
Declaration
public static readonly Color LightGray
Field Value
LightGreen
Declaration
public static readonly Color LightGreen
Field Value
LightYellow
Declaration
public static readonly Color LightYellow
Field Value
Magenta
Declaration
public static readonly Color Magenta
Field Value
Orange
Declaration
public static readonly Color Orange
Field Value
Pink
Declaration
public static readonly Color Pink
Field Value
Red
Declaration
public static readonly Color Red
Field Value
Violet
Declaration
public static readonly Color Violet
Field Value
White
Declaration
public static readonly Color White
Field Value
Yellow
Declaration
public static readonly Color Yellow
Field Value
Properties
B
Gets the color blue intensity.
Declaration
public readonly byte B { get; }
Property Value
G
Gets the color green intensity.
Declaration
public readonly byte G { get; }
Property Value
IsEmpty
Tells whether the color is empty.
Declaration
public readonly bool IsEmpty { get; }
Property Value
R
Gets the color red intensity.
Declaration
public readonly byte R { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object inObj)
Parameters
Type |
Name |
Description |
Object |
inObj |
|
Returns
Overrides
Equals(Color)
Declaration
public bool Equals(Color inOther)
Parameters
Type |
Name |
Description |
Color |
inOther |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(Color, Color)
Declaration
public static bool operator ==(Color inC1, Color inC2)
Parameters
Type |
Name |
Description |
Color |
inC1 |
Left hand side color.
|
Color |
inC2 |
Right hand side color.
|
Returns
Type |
Description |
Boolean |
Colors are equal.
|
Inequality(Color, Color)
Declaration
public static bool operator !=(Color inC1, Color inC2)
Parameters
Type |
Name |
Description |
Color |
inC1 |
Left hand side color.
|
Color |
inC2 |
Right hand side color.
|
Returns
Type |
Description |
Boolean |
Colors are different.
|
Implements