New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public sealed class UnifiedColor

Inheritance: objectUnifiedColor

Properties

Gets the CmykaColor.

C#
public CmykaColor Cmyka { get; }
Property Value:

The color.

Gets the HexColor.

C#
public HexColor Hex { get; }
Property Value:

The color.

Gets the HlsaColor.

C#
public HlsaColor Hlsa { get; }
Property Value:

The color.

Gets the HsvaColor.

C#
public HsvaColor Hsva { get; }
Property Value:

The color.

Gets the RgbaColor.

C#
public RgbaColor Rgba { get; }
Property Value:

The color.

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Compares to another unified color.

C#
public bool Equals(UnifiedColor otherUnifiedColor)
Parameters:otherUnifiedColorUnifiedColor

The other unified color.

Returns:

bool

Creates a new UnifiedColor instance from a CmykaColor instance.

C#
public static UnifiedColor FromCmyka(CmykaColor cmyka)
Parameters:cmykaCmykaColor

An instance of the CmykaColor class.

Returns:

UnifiedColor

A new instance of the UnifiedColor class.

Creates a new UnifiedColor instance from a HexColor instance.

C#
public static UnifiedColor FromHex(HexColor hex)
Parameters:hexHexColor

An instance of the HexColor class.

Returns:

UnifiedColor

A new instance of the UnifiedColor class.

Creates a new UnifiedColor instance from a HlsaColor instance.

C#
public static UnifiedColor FromHlsa(HlsaColor hlsa)
Parameters:hlsaHlsaColor

An instance of the HlsaColor class.

Returns:

UnifiedColor

A new instance of the UnifiedColor class.

Creates a new UnifiedColor instance from a HsvaColor instance.

C#
public static UnifiedColor FromHsva(HsvaColor hsva)
Parameters:hsvaHsvaColor

An instance of the HsvaColor class.

Returns:

UnifiedColor

A new instance of the UnifiedColor class.

Creates a new UnifiedColor instance from a RgbaColor instance.

C#
public static UnifiedColor FromRgba(RgbaColor rgba)
Parameters:rgbaRgbaColor

An instance of the RgbaColor class.

Returns:

UnifiedColor

A new instance of the UnifiedColor class.

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Extension Methods