Color Structure |
The Color type exposes the following members.
| Name | Description | |
|---|---|---|
| A | The alpha component (0 = fully transparent, 255 = fully opaque). | |
| AliceBlue | The color AliceBlue (#F0F8FF). | |
| AntiqueWhite | The color AntiqueWhite (#FAEBD7). | |
| Aqua | The color Aqua (#00FFFF). | |
| Aquamarine | The color Aquamarine (#7FFFD4). | |
| Azure | The color Azure (#F0FFFF). | |
| B | The blue component (0–255). | |
| Beige | The color Beige (#F5F5DC). | |
| Bisque | The color Bisque (#FFE4C4). | |
| Black | The color Black (#000000). | |
| BlanchedAlmond | The color BlanchedAlmond (#FFEBCD). | |
| Blue | The color Blue (#0000FF). | |
| BlueViolet | The color BlueViolet (#8A2BE2). | |
| Brown | The color Brown (#A52A2A). | |
| BurlyWood | The color BurlyWood (#DEB887). | |
| CadetBlue | The color CadetBlue (#5F9EA0). | |
| Chartreuse | The color Chartreuse (#7FFF00). | |
| Chocolate | The color Chocolate (#D2691E). | |
| Coral | The color Coral (#FF7F50). | |
| CornflowerBlue | The color CornflowerBlue (#6495ED). | |
| Cornsilk | The color Cornsilk (#FFF8DC). | |
| Crimson | The color Crimson (#DC143C). | |
| Cyan | The color Cyan (#00FFFF). | |
| DarkBlue | The color DarkBlue (#00008B). | |
| DarkCyan | The color DarkCyan (#008B8B). | |
| DarkGoldenrod | The color DarkGoldenrod (#B8860B). | |
| DarkGray | The color DarkGray (#A9A9A9). | |
| DarkGreen | The color DarkGreen (#006400). | |
| DarkKhaki | The color DarkKhaki (#BDB76B). | |
| DarkMagenta | The color DarkMagenta (#8B008B). | |
| DarkOliveGreen | The color DarkOliveGreen (#556B2F). | |
| DarkOrange | The color DarkOrange (#FF8C00). | |
| DarkOrchid | The color DarkOrchid (#9932CC). | |
| DarkRed | The color DarkRed (#8B0000). | |
| DarkSalmon | The color DarkSalmon (#E9967A). | |
| DarkSeaGreen | The color DarkSeaGreen (#8FBC8F). | |
| DarkSlateBlue | The color DarkSlateBlue (#483D8B). | |
| DarkSlateGray | The color DarkSlateGray (#2F4F4F). | |
| DarkTurquoise | The color DarkTurquoise (#00CED1). | |
| DarkViolet | The color DarkViolet (#9400D3). | |
| DeepPink | The color DeepPink (#FF1493). | |
| DeepSkyBlue | The color DeepSkyBlue (#00BFFF). | |
| DimGray | The color DimGray (#696969). | |
| DodgerBlue | The color DodgerBlue (#1E90FF). | |
| Firebrick | The color Firebrick (#B22222). | |
| FloralWhite | The color FloralWhite (#FFFAF0). | |
| ForestGreen | The color ForestGreen (#228B22). | |
| Fuchsia | The color Fuchsia (#FF00FF). | |
| G | The green component (0–255). | |
| Gainsboro | The color Gainsboro (#DCDCDC). | |
| GhostWhite | The color GhostWhite (#F8F8FF). | |
| Gold | The color Gold (#FFD700). | |
| Goldenrod | The color Goldenrod (#DAA520). | |
| Gray | The color Gray (#808080). | |
| Green | The color Green (#008000). | |
| GreenYellow | The color GreenYellow (#ADFF2F). | |
| Honeydew | The color Honeydew (#F0FFF0). | |
| HotPink | The color HotPink (#FF69B4). | |
| IndianRed | The color IndianRed (#CD5C5C). | |
| Indigo | The color Indigo (#4B0082). | |
| IsEmpty | True if this is the default (uninitialized) value of Color. | |
| Ivory | The color Ivory (#FFFFF0). | |
| Khaki | The color Khaki (#F0E68C). | |
| Lavender | The color Lavender (#E6E6FA). | |
| LavenderBlush | The color LavenderBlush (#FFF0F5). | |
| LawnGreen | The color LawnGreen (#7CFC00). | |
| LemonChiffon | The color LemonChiffon (#FFFACD). | |
| LightBlue | The color LightBlue (#ADD8E6). | |
| LightCoral | The color LightCoral (#F08080). | |
| LightCyan | The color LightCyan (#E0FFFF). | |
| LightGoldenrodYellow | The color LightGoldenrodYellow (#FAFAD2). | |
| LightGray | The color LightGray (#D3D3D3). | |
| LightGreen | The color LightGreen (#90EE90). | |
| LightPink | The color LightPink (#FFB6C1). | |
| LightSalmon | The color LightSalmon (#FFA07A). | |
| LightSeaGreen | The color LightSeaGreen (#20B2AA). | |
| LightSkyBlue | The color LightSkyBlue (#87CEFA). | |
| LightSlateGray | The color LightSlateGray (#778899). | |
| LightSteelBlue | The color LightSteelBlue (#B0C4DE). | |
| LightYellow | The color LightYellow (#FFFFE0). | |
| Lime | The color Lime (#00FF00). | |
| LimeGreen | The color LimeGreen (#32CD32). | |
| Linen | The color Linen (#FAF0E6). | |
| Magenta | The color Magenta (#FF00FF). | |
| Maroon | The color Maroon (#800000). | |
| MediumAquamarine | The color MediumAquamarine (#66CDAA). | |
| MediumBlue | The color MediumBlue (#0000CD). | |
| MediumOrchid | The color MediumOrchid (#BA55D3). | |
| MediumPurple | The color MediumPurple (#9370DB). | |
| MediumSeaGreen | The color MediumSeaGreen (#3CB371). | |
| MediumSlateBlue | The color MediumSlateBlue (#7B68EE). | |
| MediumSpringGreen | The color MediumSpringGreen (#00FA9A). | |
| MediumTurquoise | The color MediumTurquoise (#48D1CC). | |
| MediumVioletRed | The color MediumVioletRed (#C71585). | |
| MidnightBlue | The color MidnightBlue (#191970). | |
| MintCream | The color MintCream (#F5FFFA). | |
| MistyRose | The color MistyRose (#FFE4E1). | |
| Moccasin | The color Moccasin (#FFE4B5). | |
| NavajoWhite | The color NavajoWhite (#FFDEAD). | |
| Navy | The color Navy (#000080). | |
| OldLace | The color OldLace (#FDF5E6). | |
| Olive | The color Olive (#808000). | |
| OliveDrab | The color OliveDrab (#6B8E23). | |
| Orange | The color Orange (#FFA500). | |
| OrangeRed | The color OrangeRed (#FF4500). | |
| Orchid | The color Orchid (#DA70D6). | |
| PaleGoldenrod | The color PaleGoldenrod (#EEE8AA). | |
| PaleGreen | The color PaleGreen (#98FB98). | |
| PaleTurquoise | The color PaleTurquoise (#AFEEEE). | |
| PaleVioletRed | The color PaleVioletRed (#DB7093). | |
| PapayaWhip | The color PapayaWhip (#FFEFD5). | |
| PeachPuff | The color PeachPuff (#FFDAB9). | |
| Peru | The color Peru (#CD853F). | |
| Pink | The color Pink (#FFC0CB). | |
| Plum | The color Plum (#DDA0DD). | |
| PowderBlue | The color PowderBlue (#B0E0E6). | |
| Purple | The color Purple (#800080). | |
| R | The red component (0–255). | |
| RebeccaPurple | The color RebeccaPurple (#663399). | |
| Red | The color Red (#FF0000). | |
| RosyBrown | The color RosyBrown (#BC8F8F). | |
| RoyalBlue | The color RoyalBlue (#4169E1). | |
| SaddleBrown | The color SaddleBrown (#8B4513). | |
| Salmon | The color Salmon (#FA8072). | |
| SandyBrown | The color SandyBrown (#F4A460). | |
| SeaGreen | The color SeaGreen (#2E8B57). | |
| SeaShell | The color SeaShell (#FFF5EE). | |
| Sienna | The color Sienna (#A0522D). | |
| Silver | The color Silver (#C0C0C0). | |
| SkyBlue | The color SkyBlue (#87CEEB). | |
| SlateBlue | The color SlateBlue (#6A5ACD). | |
| SlateGray | The color SlateGray (#708090). | |
| Snow | The color Snow (#FFFAFA). | |
| SpringGreen | The color SpringGreen (#00FF7F). | |
| SteelBlue | The color SteelBlue (#4682B4). | |
| Tan | The color Tan (#D2B48C). | |
| Teal | The color Teal (#008080). | |
| Thistle | The color Thistle (#D8BFD8). | |
| Tomato | The color Tomato (#FF6347). | |
| Transparent | A fully transparent color (A=0). | |
| Turquoise | The color Turquoise (#40E0D0). | |
| Violet | The color Violet (#EE82EE). | |
| Wheat | The color Wheat (#F5DEB3). | |
| White | The color White (#FFFFFF). | |
| WhiteSmoke | The color WhiteSmoke (#F5F5F5). | |
| Yellow | The color Yellow (#FFFF00). | |
| YellowGreen | The color YellowGreen (#9ACD32). |
| Name | Description | |
|---|---|---|
| Equals(Color) | Indicates whether this color and the specified Color have the same ARGB value. | |
| Equals(Object) | Indicates whether this color and the specified object have the same value. (Overrides ValueTypeEquals(Object)) | |
| FromArgb(Int32) | Constructs a color from a raw 32-bit ARGB value (layout: AARRGGBB). | |
| FromArgb(Int32, Color) | Constructs a color by replacing the alpha component of an existing color. | |
| FromArgb(Int32, Int32, Int32) | Constructs a fully-opaque color from the given red/green/blue components. | |
| FromArgb(Int32, Int32, Int32, Int32) | Constructs a color with the given alpha/red/green/blue components. Each value is clamped to 0–255. | |
| GetHashCode | Returns the hash code for this color. (Overrides ValueTypeGetHashCode) | |
| ToArgb | Gets the raw 32-bit ARGB value (layout: AARRGGBB). | |
| ToString | Returns a string representation of this Color (its A, R, G and B components). (Overrides ValueTypeToString) |
| Name | Description | |
|---|---|---|
| Equality(Color, Color) | Returns true if the two colors have identical ARGB values. | |
| Inequality(Color, Color) | Returns true if the two colors have different ARGB values. |
| Name | Description | |
|---|---|---|
| Empty | Represents the uninitialized color (all components zero, including alpha). Distinct from fully-transparent black, which is the same bit pattern but created explicitly. Callers check IsEmpty before use if the color might not have been set. |