Class HtmlColor
Inherited Members
Namespace: Telerik.WinControls.Svg.ExCSS
Assembly: TelerikCommon.dll
Syntax
public class HtmlColor : Term, IEquatable<HtmlColor>
Constructors
HtmlColor(Byte, Byte, Byte)
Declaration
public HtmlColor(byte r, byte g, byte b)
Parameters
System.Byte
r
|
System.Byte
g
|
System.Byte
b
|
HtmlColor(Byte, Byte, Byte, Byte)
Declaration
public HtmlColor(byte a, byte r, byte g, byte b)
Parameters
System.Byte
a
|
System.Byte
r
|
System.Byte
g
|
System.Byte
b
|
HtmlColor(Double, Byte, Byte, Byte)
Declaration
public HtmlColor(double a, byte r, byte g, byte b)
Parameters
System.Double
a
|
System.Byte
r
|
System.Byte
g
|
System.Byte
b
|
Fields
A
Declaration
public byte A
Field Value
System.Byte
|
B
Declaration
public byte B
Field Value
System.Byte
|
G
Declaration
public byte G
Field Value
System.Byte
|
R
Declaration
public byte R
Field Value
System.Byte
|
Properties
Alpha
Declaration
public double Alpha { get; }
Property Value
System.Double
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
Equals(HtmlColor)
Declaration
public bool Equals(HtmlColor other)
Parameters
HtmlColor
other
|
Returns
System.Boolean
|
Implements
FromHex(String)
Declaration
public static HtmlColor FromHex(string color)
Parameters
System.String
color
|
Returns
HtmlColor
|
FromHsl(Single, Single, Single)
Declaration
public static HtmlColor FromHsl(float h, float s, float l)
Parameters
System.Single
h
|
System.Single
s
|
System.Single
l
|
Returns
HtmlColor
|
FromRgb(Byte, Byte, Byte)
Declaration
public static HtmlColor FromRgb(byte r, byte g, byte b)
Parameters
System.Byte
r
|
System.Byte
g
|
System.Byte
b
|
Returns
HtmlColor
|
FromRgba(Byte, Byte, Byte, Double)
Declaration
public static HtmlColor FromRgba(byte r, byte g, byte b, double a)
Parameters
System.Byte
r
|
System.Byte
g
|
System.Byte
b
|
System.Double
a
|
Returns
HtmlColor
|
FromRgba(Byte, Byte, Byte, Single)
Declaration
public static HtmlColor FromRgba(byte r, byte g, byte b, float a)
Parameters
System.Byte
r
|
System.Byte
g
|
System.Byte
b
|
System.Single
a
|
Returns
HtmlColor
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
ToString(Boolean, Boolean, Int32)
Declaration
public string ToString(bool forceLong, bool friendlyFormat, int indentation = 0)
Parameters
System.Boolean
forceLong
|
System.Boolean
friendlyFormat
|
System.Int32
indentation
|
Returns
System.String
|
ToString(Boolean, Int32)
Declaration
public string ToString(bool friendlyFormat, int indentation = 0)
Parameters
System.Boolean
friendlyFormat
|
System.Int32
indentation
|
Returns
System.String
|
TryFromHex(String, out HtmlColor)
Declaration
public static bool TryFromHex(string color, out HtmlColor htmlColor)
Parameters
System.String
color
|
HtmlColor
htmlColor
|
Returns
System.Boolean
|
Operators
Equality(HtmlColor, HtmlColor)
Declaration
public static bool operator ==(HtmlColor a, HtmlColor b)
Parameters
HtmlColor
a
|
HtmlColor
b
|
Returns
System.Boolean
|
Inequality(HtmlColor, HtmlColor)
Declaration
public static bool operator !=(HtmlColor a, HtmlColor b)
Parameters
HtmlColor
a
|
HtmlColor
b
|
Returns
System.Boolean
|