HslColor Class
HueSatLumColor represents colors by their Hue-Saturation-Luminosity value rather than the traditional RGB value. This class provides conversion methods to go back and forth between the HSL and RGB color spaces.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | HslColor() | Default constructor creates an empty instance of the class. |
![]() | HslColor(Int32, Int32, Int32) | Creates instance of the class with the specified hue, saturation, and luminosity. |
| Name | Description | |
|---|---|---|
![]() ![]() | Black | Pre-defined color. |
![]() | Hue | Gets or sets the Hue property. |
![]() | Luminosity | Gets or sets the Luminosity property. |
![]() | Saturation | Gets or sets the Saturation property. |
![]() ![]() | White | Pre-defined color. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() ![]() | FromRgbColor(Color) | Converts an RGB color representation to an HSL color representation. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToRgbColor() | Converts an HSL color representation to an RGB color representation. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



