Class HSVColor
Represents the class for Hue, saturation and brightness (HSV) color model.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public sealed class HSVColor : ValueType, IEquatable<HSVColor>Properties
A
Gets or sets the alpha value of the color.
Declaration
public double A { get; set; }Property Value
| Type | 
|---|
| System.Double | 
H
Gets or sets the hue value of the color.
Declaration
public double H { get; set; }Property Value
| Type | 
|---|
| System.Double | 
S
Gets or sets the saturation value of the color.
Declaration
public double S { get; set; }Property Value
| Type | 
|---|
| System.Double | 
V
Gets or sets the brightness value of the color.
Declaration
public double V { get; set; }Property Value
| Type | 
|---|
| System.Double | 
Methods
Equals(HSVColor)
Indicates whether this instance and a specified color are equal.
Declaration
public bool Equals(HSVColor color)Parameters
| Type | Name | Description | 
|---|---|---|
| HSVColor | color | The color to compare with the current instance. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if color and this instance are the same type and represent the same value; otherwise, false. | 
Equals(Object)
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | 
Returns
| Type | 
|---|
| System.Boolean | 
GetHashCode()
Declaration
public override int GetHashCode()Returns
| Type | 
|---|
| System.Int32 | 
Operators
Equality(HSVColor, HSVColor)
Returns a value that indicates whether two specified HSVColor values are equal.
Declaration
public static bool operator ==(HSVColor left, HSVColor right)Parameters
| Type | Name | Description | 
|---|---|---|
| HSVColor | left | The first value to compare. | 
| HSVColor | right | The second value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if left and right are equal; otherwise, false. | 
Inequality(HSVColor, HSVColor)
Returns a value that indicates whether two specified HSVColor values are not equal.
Declaration
public static bool operator !=(HSVColor left, HSVColor right)Parameters
| Type | Name | Description | 
|---|---|---|
| HSVColor | left | The first value to compare. | 
| HSVColor | right | The second value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if left and right are not equal; otherwise, false. |