Struct RColor
Represents an ARGB (alpha, red, green, blue) color.
Inherited Members
Namespace: TheArtOfDev.HtmlRenderer.Adapters.Entities
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public struct RColor
Fields
Empty
Properties
A
Gets the alpha component value of this RColor structure.
Declaration
public byte A { get; }
Property Value
System.Byte
|
B
Gets the blue component value of this RColor structure.
Declaration
public byte B { get; }
Property Value
System.Byte
|
Black
Gets a system-defined color that has an ARGB value of #FF000000.
Declaration
public static RColor Black { get; }
Property Value
RColor
|
G
Gets the green component value of this RColor structure.
Declaration
public byte G { get; }
Property Value
System.Byte
|
IsEmpty
Specifies whether this RColor structure is uninitialized.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
This property returns true if this color is uninitialized; otherwise, false. |
LightGray
Gets a system-defined color that has an ARGB value of #FFD3D3D3.
Declaration
public static RColor LightGray { get; }
Property Value
RColor
|
R
Gets the red component value of this RColor structure.
Declaration
public byte R { get; }
Property Value
System.Byte
|
Transparent
Gets a system-defined color.
Declaration
public static RColor Transparent { get; }
Property Value
RColor
|
White
Gets a system-defined color that has an ARGB value of #FFFFFFFF.
Declaration
public static RColor White { get; }
Property Value
RColor
|
WhiteSmoke
Gets a system-defined color that has an ARGB value of #FFF5F5F5.
Declaration
public static RColor WhiteSmoke { get; }
Property Value
RColor
|
Methods
Equals(Object)
Tests whether the specified object is a RColor structure and is equivalent to this RColor structure.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The object to test. |
Returns
System.Boolean
true if |
Overrides
FromArgb(Int32, Int32, Int32)
Creates a RColor structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
Declaration
public static RColor FromArgb(int red, int green, int blue)
Parameters
System.Int32
red
The red component value for the new RColor. Valid values are 0 through 255. |
System.Int32
green
The green component value for the new RColor. Valid values are 0 through 255. |
System.Int32
blue
The blue component value for the new RColor. Valid values are 0 through 255. |
Returns
RColor
The RColor that this method creates. |
Exceptions
System.ArgumentException
|
FromArgb(Int32, Int32, Int32, Int32)
Creates a RColor structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
Declaration
public static RColor FromArgb(int alpha, int red, int green, int blue)
Parameters
System.Int32
alpha
The alpha component. Valid values are 0 through 255. |
System.Int32
red
The red component. Valid values are 0 through 255. |
System.Int32
green
The green component. Valid values are 0 through 255. |
System.Int32
blue
The blue component. Valid values are 0 through 255. |
Returns
RColor
The RColor that this method creates. |
Exceptions
System.ArgumentException
|
GetHashCode()
Returns a hash code for this RColor structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
An integer value that specifies the hash code for this RColor. |
Overrides
ToString()
Converts this RColor structure to a human-readable string.
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Operators
Equality(RColor, RColor)
Tests whether two specified RColor structures are equivalent.
Declaration
public static bool operator ==(RColor left, RColor right)
Parameters
RColor
left
The RColor that is to the left of the equality operator. |
RColor
right
The RColor that is to the right of the equality operator. |
Returns
System.Boolean
true if the two RColor structures are equal; otherwise, false. |
Inequality(RColor, RColor)
Tests whether two specified RColor structures are different.
Declaration
public static bool operator !=(RColor left, RColor right)
Parameters
RColor
left
The RColor that is to the left of the inequality operator. |
RColor
right
The RColor that is to the right of the inequality operator. |
Returns
System.Boolean
true if the two RColor structures are different; otherwise, false. |