Class
UnifiedColor

Represents a unified view of all the available color schemas (RGB, HLS, HSV, HEX and CMYK).

Definition

Namespace:Telerik.Windows.Controls.ColorEditor

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public sealed class UnifiedColor

Inheritance: objectUnifiedColor

Properties

Cmyka

Gets the CmykaColor.

Declaration

cs-api-definition
public CmykaColor Cmyka { get; }

Property Value

CmykaColor

The color.

Hex

Gets the HexColor.

Declaration

cs-api-definition
public HexColor Hex { get; }

Property Value

HexColor

The color.

Hlsa

Gets the HlsaColor.

Declaration

cs-api-definition
public HlsaColor Hlsa { get; }

Property Value

HlsaColor

The color.

Hsva

Gets the HsvaColor.

Declaration

cs-api-definition
public HsvaColor Hsva { get; }

Property Value

HsvaColor

The color.

Rgba

Gets the RgbaColor.

Declaration

cs-api-definition
public RgbaColor Rgba { get; }

Property Value

RgbaColor

The color.

Methods

Equals(UnifiedColor)

Compares to another unified color.

Declaration

cs-api-definition
public bool Equals(UnifiedColor otherUnifiedColor)

Parameters

otherUnifiedColor

UnifiedColor

The other unified color.

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 object.Equals(object)

FromCmyka(CmykaColor)

Creates a new UnifiedColor instance from a CmykaColor instance.

Declaration

cs-api-definition
public static UnifiedColor FromCmyka(CmykaColor cmyka)

Parameters

cmyka

CmykaColor

An instance of the CmykaColor class.

Returns

UnifiedColor

A new instance of the UnifiedColor class.

FromHex(HexColor)

Creates a new UnifiedColor instance from a HexColor instance.

Declaration

cs-api-definition
public static UnifiedColor FromHex(HexColor hex)

Parameters

hex

HexColor

An instance of the HexColor class.

Returns

UnifiedColor

A new instance of the UnifiedColor class.

FromHlsa(HlsaColor)

Creates a new UnifiedColor instance from a HlsaColor instance.

Declaration

cs-api-definition
public static UnifiedColor FromHlsa(HlsaColor hlsa)

Parameters

hlsa

HlsaColor

An instance of the HlsaColor class.

Returns

UnifiedColor

A new instance of the UnifiedColor class.

FromHsva(HsvaColor)

Creates a new UnifiedColor instance from a HsvaColor instance.

Declaration

cs-api-definition
public static UnifiedColor FromHsva(HsvaColor hsva)

Parameters

hsva

HsvaColor

An instance of the HsvaColor class.

Returns

UnifiedColor

A new instance of the UnifiedColor class.

FromRgba(RgbaColor)

Creates a new UnifiedColor instance from a RgbaColor instance.

Declaration

cs-api-definition
public static UnifiedColor FromRgba(RgbaColor rgba)

Parameters

rgba

RgbaColor

An instance of the RgbaColor class.

Returns

UnifiedColor

A new instance of the UnifiedColor class.

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 object.GetHashCode()

Extension Methods