Struct
HexColor

A struct representing a Hex color representation of a color.

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.ColorSchemas

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public struct HexColor

Inherited Members ValueType.ToString()

Constructors

HexColor(string)

Initializes a new instance of the HexColor struct.

Declaration

cs-api-definition
public HexColor(string value)

Parameters

value

string

The hex value.

Properties

Value

Gets the hex value of the HexColor class.

Declaration

cs-api-definition
public string Value { get; }

Property Value

string

The value.

Methods

Equals(HexColor)

Compares this HexColor instance to another HexColor instance.

Declaration

cs-api-definition
public bool Equals(HexColor otherHex)

Parameters

otherHex

HexColor

The other HexColor instance.

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

Operators

operator !=(HexColor, HexColor)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(HexColor instance1, HexColor instance2)

Parameters

instance1

HexColor

The instance1.

instance2

HexColor

The instance2.

Returns

bool

The result of the operator.

operator ==(HexColor, HexColor)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(HexColor instance1, HexColor instance2)

Parameters

instance1

HexColor

The instance1.

instance2

HexColor

The instance2.

Returns

bool

The result of the operator.

Extension Methods