Class HSLColor
Represents the class for hue, saturation and lightness (HSL) color model.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public sealed class HSLColor : ValueType, IEquatable<HSLColor>Properties
A
Gets or sets the alpha value of the HSLColor.
Declaration
public double A { get; set; }Property Value
| Type | 
|---|
| System.Double | 
H
Gets or sets the hue value of the HSLColor.
Declaration
public double H { get; set; }Property Value
| Type | 
|---|
| System.Double | 
L
Gets or sets the lightness value of the HSLColor.
Declaration
public double L { get; set; }Property Value
| Type | 
|---|
| System.Double | 
S
Gets or sets the saturation value of the HSLColor.
Declaration
public double S { get; set; }Property Value
| Type | 
|---|
| System.Double | 
Methods
Equals(HSLColor)
Indicates whether this instance and a specified color are equal.
Declaration
public bool Equals(HSLColor color)Parameters
| Type | Name | Description | 
|---|---|---|
| HSLColor | 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(HSLColor, HSLColor)
Returns a value that indicates whether two specified HSLColor values are equal.
Declaration
public static bool operator ==(HSLColor left, HSLColor right)Parameters
| Type | Name | Description | 
|---|---|---|
| HSLColor | left | The first value to compare. | 
| HSLColor | right | The second value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if left and right are equal; otherwise, false. | 
Inequality(HSLColor, HSLColor)
Returns a value that indicates whether two specified HSLColor values are not equal.
Declaration
public static bool operator !=(HSLColor left, HSLColor right)Parameters
| Type | Name | Description | 
|---|---|---|
| HSLColor | left | The first value to compare. | 
| HSLColor | right | The second value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if left and right are not equal; otherwise, false. |