Struct Color
Represents color object.
Inherited Members
Namespace: Telerik.Documents.Media
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public struct Color
Properties
A
Gets or sets the alpha component.
Declaration
public byte A { get; set; }
Property Value
System.Byte
The alpha component. |
B
Gets or sets the blue component.
Declaration
public byte B { get; set; }
Property Value
System.Byte
The blue component. |
G
Gets or sets the green component.
Declaration
public byte G { get; set; }
Property Value
System.Byte
The green component. |
R
Gets or sets the red component.
Declaration
public byte R { get; set; }
Property Value
System.Byte
The red component. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
|
Overrides
Equals(Color)
Determines whether the specified Color is equal to the current object.
Declaration
public bool Equals(Color value)
Parameters
Color
value
The color. |
Returns
System.Boolean
|
FromArgb(Byte, Byte, Byte, Byte)
Creates new color from Argb.
Declaration
public static Color FromArgb(byte alfa, byte red, byte green, byte blue)
Parameters
System.Byte
alfa
The alfa. |
System.Byte
red
The red. |
System.Byte
green
The green. |
System.Byte
blue
The blue. |
Returns
Color
|
FromRgb(Byte, Byte, Byte)
Creates new color from RGB.
Declaration
public static Color FromRgb(byte red, byte green, byte blue)
Parameters
System.Byte
red
The red. |
System.Byte
green
The green. |
System.Byte
blue
The blue. |
Returns
Color
|
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
Operators
Equality(Color, Color)
Compares two color instances.
Declaration
public static bool operator ==(Color color1, Color color2)
Parameters
Color
color1
First color. |
Color
color2
Second color. |
Returns
System.Boolean
If two colors are equal. |
Inequality(Color, Color)
Compares two color instances.
Declaration
public static bool operator !=(Color color1, Color color2)
Parameters
Color
color1
First color. |
Color
color2
Second color. |
Returns
System.Boolean
If two colors are not equal. |