Struct
HslColor

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public struct HslColor

Inherited Members ValueType.ToString()

Properties

Hue

Gets or sets the hue.

Declaration

cs-api-definition
public double Hue { readonly get; set; }

Property Value

double

The hue.

Luminance

Gets or sets the luminance.

Declaration

cs-api-definition
public double Luminance { readonly get; set; }

Property Value

double

The luminance.

Saturation

Gets or sets the saturation.

Declaration

cs-api-definition
public double Saturation { readonly get; set; }

Property Value

double

The saturation.

Methods

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

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

Parameters

obj

object

The object to compare with this instance.

Returns

bool

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

Overrides ValueType.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides ValueType.GetHashCode()

Operators

operator !=(HslColor, HslColor)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(HslColor color1, HslColor color2)

Parameters

color1

HslColor

The color1.

color2

HslColor

The color2.

Returns

bool

The result of the operator.

operator ==(HslColor, HslColor)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(HslColor color1, HslColor color2)

Parameters

color1

HslColor

The color1.

color2

HslColor

The color2.

Returns

bool

The result of the operator.