Color Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a color in terms of alpha, red, green, and blue channels.
public value class Color : IFormattable
[System.Security.SecurityCritical]
public struct Color : IFormattable
[<System.Security.SecurityCritical>]
type Color = struct
interface IFormattable
Public Structure Color
Implements IFormattable
- Inheritance
- Attributes
- Implements
This struct represents the .NET projection of the Windows Runtime (WinRT) Color
struct. For more information, see Color in the UWP API reference.
A |
Gets or sets the sRGB alpha channel value of the color. |
B |
Gets or sets the sRGB blue channel value of the color. |
G |
Gets or sets the sRGB green channel value of the color. |
R |
Gets or sets the sRGB red channel value of the color. |
Equals(Color) |
Tests whether the specified Color struct is identical to the current color. |
Equals(Object) |
Tests whether the specified object is a Color struct and is equivalent to the current color. |
From |
Creates a new Color struct by using the specified sRGB alpha channel and color channel values. |
Get |
Gets a hash code for the current Color struct. |
To |
Creates a string representation of the color using the ARGB channels in hex notation. |
To |
Creates a string representation of the color by using the ARGB channels and the specified format provider. |
Equality(Color, Color) |
Tests whether two Color structs are identical. |
Inequality(Color, Color) |
Tests whether two Color structs are not identical. |
IFormattable. |
For a description of this member, see ToString(String, IFormatProvider). |
Product | Versions |
---|---|
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: