Struct
HsvaColor

A struct representing a color comprised of Hue, Saturation, Value and Alpha channels.

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.ColorSchemas

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Hsva")]
public struct HsvaColor

Inherited Members ValueType.ToString()

Constructors

HsvaColor(double, double, double, double)

Initializes a new instance of the HsvaColor struct.

Declaration

cs-api-definition
public HsvaColor(double hue, double saturation, double value, double alpha)

Parameters

hue

double

The hue channel.

saturation

double

The saturation channel.

value

double

The value channel.

alpha

double

The alpha channel.

Properties

Alpha

Gets the alpha (opacity) channel of the HsvaColor instance.

Declaration

cs-api-definition
public double Alpha { get; }

Property Value

double

The alpha channel.

Hue

Gets the hue channel of the HsvaColor instance.

Declaration

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

Property Value

double

The hue channel.

Saturation

Gets the saturation channel of the HsvaColor instance.

Declaration

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

Property Value

double

The saturation channel.

Value

Gets the value channel of the HsvaColor instance.

Declaration

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

Property Value

double

The value channel.

Methods

Equals(HsvaColor)

Compares the two instance.

Declaration

cs-api-definition
public bool Equals(HsvaColor otherInstance)

Parameters

otherInstance

HsvaColor

The other 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 !=(HsvaColor, HsvaColor)

Implements the operator !=.

Declaration

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

Parameters

instance1

HsvaColor

The instance1.

instance2

HsvaColor

The instance2.

Returns

bool

The result of the operator.

operator ==(HsvaColor, HsvaColor)

Implements the operator ==.

Declaration

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

Parameters

instance1

HsvaColor

The instance1.

instance2

HsvaColor

The instance2.

Returns

bool

The result of the operator.

Extension Methods