Colors Class
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.
Implements a set of predefined colors.
public ref class Colors sealed
public sealed class Colors
type Colors = class
Public NotInheritable Class Colors
- Inheritance
-
Colors
The Windows Presentation Foundation color names match the .NET Framework and Windows Forms color names. This representation is based on UNIX X11 named color values.
The following image shows each predefined color, its name, and its hexadecimal value.
Color Table including a color swatch, the color name, and the hexadecimal value
See the Brush class for a variety of other, more complex ways you can color an area, including gradients (LinearGradientBrush, RadialGradientBrush) or images (ImageBrush).
You cannot declare this managed class in XAML, but you can use its static properties to assign values in XAML.
Alice |
Gets the system-defined color that has an ARGB value of |
Antique |
Gets the system-defined color that has an ARGB value of |
Aqua |
Gets the system-defined color that has an ARGB value of |
Aquamarine |
Gets the system-defined color that has an ARGB value of |
Azure |
Gets the system-defined color that has an ARGB value of |
Beige |
Gets the system-defined color that has an ARGB value of |
Bisque |
Gets the system-defined color that has an ARGB value of |
Black |
Gets the system-defined color that has an ARGB value of |
Blanched |
Gets the system-defined color that has an ARGB value of |
Blue |
Gets the system-defined color that has an ARGB value of |
Blue |
Gets the system-defined color that has an ARGB value of |
Brown |
Gets the system-defined color that has an ARGB value of |
Burly |
Gets the system-defined color that has an ARGB value of |
Cadet |
Gets the system-defined color that has an ARGB value of |
Chartreuse |
Gets the system-defined color that has an ARGB value of |
Chocolate |
Gets the system-defined color that has an ARGB value of |
Coral |
Gets the system-defined color that has an ARGB value of |
Cornflower |
Gets the system-defined color that has an ARGB value of |
Cornsilk |
Gets the system-defined color that has an ARGB value of |
Crimson |
Gets the system-defined color that has an ARGB value of |
Cyan |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Dark |
Gets the system-defined color that has an ARGB value of |
Deep |
Gets the system-defined color that has an ARGB value of |
Deep |
Gets the system-defined color that has an ARGB value of |
Dim |
Gets the system-defined color that has an ARGB value of |
Dodger |
Gets the system-defined color that has an ARGB value of |
Firebrick |
Gets the system-defined color that has an ARGB value of |
Floral |
Gets the system-defined color that has an ARGB value of |
Forest |
Gets the system-defined color that has an ARGB value of |
Fuchsia |
Gets the system-defined color that has an ARGB value of |
Gainsboro |
Gets the system-defined color that has an ARGB value of |
Ghost |
Gets the system-defined color that has an ARGB value of |
Gold |
Gets the system-defined color that has an ARGB value of |
Goldenrod |
Gets the system-defined color that has an ARGB value of |
Gray |
Gets the system-defined color that has an ARGB value of |
Green |
Gets the system-defined color that has an ARGB value of |
Green |
Gets the system-defined color that has an ARGB value of |
Honeydew |
Gets the system-defined color that has an ARGB value of |
Hot |
Gets the system-defined color that has an ARGB value of |
Indian |
Gets the system-defined color that has an ARGB value of |
Indigo |
Gets the system-defined color that has an ARGB value of |
Ivory |
Gets the system-defined color that has an ARGB value of |
Khaki |
Gets the system-defined color that has an ARGB value of |
Lavender |
Gets the system-defined color that has an ARGB value of |
Lavender |
Gets the system-defined color that has an ARGB value of |
Lawn |
Gets the system-defined color that has an ARGB value of |
Lemon |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Light |
Gets the system-defined color that has an ARGB value of |
Lime |
Gets the system-defined color that has an ARGB value of |
Lime |
Gets the system-defined color that has an ARGB value of |
Linen |
Gets the system-defined color that has an ARGB value of |
Magenta |
Gets the system-defined color that has an ARGB value of |
Maroon |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Medium |
Gets the system-defined color that has an ARGB value of |
Midnight |
Gets the system-defined color that has an ARGB value of |
Mint |
Gets the system-defined color that has an ARGB value of |
Misty |
Gets the system-defined color that has an ARGB value of |
Moccasin |
Gets the system-defined color that has an ARGB value of |
Navajo |
Gets the system-defined color that has an ARGB value of |
Navy |
Gets the system-defined color that has an ARGB value of |
Old |
Gets the system-defined color that has an ARGB value of |
Olive |
Gets the system-defined color that has an ARGB value of |
Olive |
Gets the system-defined color that has an ARGB value of |
Orange |
Gets the system-defined color that has an ARGB value of |
Orange |
Gets the system-defined color that has an ARGB value of |
Orchid |
Gets the system-defined color that has an ARGB value of |
Pale |
Gets the system-defined color that has an ARGB value of |
Pale |
Gets the system-defined color that has an ARGB value of |
Pale |
Gets the system-defined color that has an ARGB value of |
Pale |
Gets the system-defined color that has an ARGB value of |
Papaya |
Gets the system-defined color that has an ARGB value of |
Peach |
Gets the system-defined color that has an ARGB value of |
Peru |
Gets the system-defined color that has an ARGB value of |
Pink |
Gets the system-defined color that has an ARGB value of |
Plum |
Gets the system-defined color that has an ARGB value of |
Powder |
Gets the system-defined color that has an ARGB value of |
Purple |
Gets the system-defined color that has an ARGB value of |
Red |
Gets the system-defined color that has an ARGB value of |
Rosy |
Gets the system-defined color that has an ARGB value of |
Royal |
Gets the system-defined color that has an ARGB value of |
Saddle |
Gets the system-defined color that has an ARGB value of |
Salmon |
Gets the system-defined color that has an ARGB value of |
Sandy |
Gets the system-defined color that has an ARGB value of |
Sea |
Gets the system-defined color that has an ARGB value of |
Sea |
Gets the system-defined color that has an ARGB value of |
Sienna |
Gets the system-defined color that has an ARGB value of |
Silver |
Gets the system-defined color that has an ARGB value of |
Sky |
Gets the system-defined color that has an ARGB value of |
Slate |
Gets the system-defined color that has an ARGB value of |
Slate |
Gets the system-defined color that has an ARGB value of |
Snow |
Gets the system-defined color that has an ARGB value of |
Spring |
Gets the system-defined color that has an ARGB value of |
Steel |
Gets the system-defined color that has an ARGB value of |
Tan |
Gets the system-defined color that has an ARGB value of |
Teal |
Gets the system-defined color that has an ARGB value of |
Thistle |
Gets the system-defined color that has an ARGB value of |
Tomato |
Gets the system-defined color that has an ARGB value of |
Transparent |
Gets the system-defined color that has an ARGB value of |
Turquoise |
Gets the system-defined color that has an ARGB value of |
Violet |
Gets the system-defined color that has an ARGB value of |
Wheat |
Gets the system-defined color that has an ARGB value of |
White |
Gets the system-defined color that has an ARGB value of |
White |
Gets the system-defined color that has an ARGB value of |
Yellow |
Gets the system-defined color that has an ARGB value of |
Yellow |
Gets the system-defined color that has an ARGB value of |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: