Color Class |
Namespace: DotNetBrowser.Ui
public sealed class Color : IFormattable
The Color type exposes the following members.
Name | Description | |
---|---|---|
Alpha |
Gets the opacity channel value in the 0..1 range. When the value is 1, the color
is 100% opaque. When 0, the color is 100% transparent.
| |
Blue |
Gets the blue channel value in the 0..1 range.
| |
Green |
Gets the green channel value in the 0..1 range.
| |
Red |
Gets the red channel value in the 0..1 range.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToHexRGB |
Creates a string representation for this color in the RGB hex format.
| |
ToHexRGBA |
Creates a string representation for this color in the RGBA hex format.
| |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) | |
ToString(String) |
Returns a string representation of the value of this Color instance, according to the provided
format specifier.
| |
ToString(String, IFormatProvider) | Formats the value of the current instance using the specified format. |
Name | Description | |
---|---|---|
ToColor | Overloaded.
Converts the Color instance to Color.
(Defined by ColorExtensions.) | |
ToColor | Overloaded.
Converts the Color instance to Color.
(Defined by ColorExtensions.) |
If all the components except alpha are at zero and the alpha is at 1, the result is black. If all are at 1, the result is the brightest representable white.
Important: the component values out of the 0..1 range are not allowed and should not be used.