Class HexColor
A struct representing a Hex color representation of a color.
Inheritance
Namespace: Telerik.Windows.Controls.ColorEditor.ColorSchemas
Assembly: Telerik.Windows.Controls.dll
Syntax
public sealed class HexColor : ValueType
Constructors
HexColor(String)
Initializes a new instance of the HexColor struct.
Declaration
public HexColor(string value)
Parameters
System.String
value
The hex value. |
Properties
Value
Gets the hex value of the HexColor class.
Declaration
public string Value { get; }
Property Value
System.String
The value. |
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
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Equals(HexColor)
Declaration
public bool Equals(HexColor otherHex)
Parameters
HexColor
otherHex
The other HexColor instance. |
Returns
System.Boolean
|
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. |
Operators
Equality(HexColor, HexColor)
Implements the operator ==.
Declaration
public static bool operator ==(HexColor instance1, HexColor instance2)
Parameters
HexColor
instance1
The instance1. |
HexColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |
Inequality(HexColor, HexColor)
Implements the operator !=.
Declaration
public static bool operator !=(HexColor instance1, HexColor instance2)
Parameters
HexColor
instance1
The instance1. |
HexColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |