Colors Class
Definition
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
Remarks
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).
XAML Text Usage
You cannot declare this managed class in XAML, but you can use its static properties to assign values in XAML.
Properties
AliceBlue |
Gets the system-defined color that has an ARGB value of |
AntiqueWhite |
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 |
BlanchedAlmond |
Gets the system-defined color that has an ARGB value of |
Blue |
Gets the system-defined color that has an ARGB value of |
BlueViolet |
Gets the system-defined color that has an ARGB value of |
Brown |
Gets the system-defined color that has an ARGB value of |
BurlyWood |
Gets the system-defined color that has an ARGB value of |
CadetBlue |
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 |
CornflowerBlue |
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 |
DarkBlue |
Gets the system-defined color that has an ARGB value of |
DarkCyan |
Gets the system-defined color that has an ARGB value of |
DarkGoldenrod |
Gets the system-defined color that has an ARGB value of |
DarkGray |
Gets the system-defined color that has an ARGB value of |
DarkGreen |
Gets the system-defined color that has an ARGB value of |
DarkKhaki |
Gets the system-defined color that has an ARGB value of |
DarkMagenta |
Gets the system-defined color that has an ARGB value of |
DarkOliveGreen |
Gets the system-defined color that has an ARGB value of |
DarkOrange |
Gets the system-defined color that has an ARGB value of |
DarkOrchid |
Gets the system-defined color that has an ARGB value of |
DarkRed |
Gets the system-defined color that has an ARGB value of |
DarkSalmon |
Gets the system-defined color that has an ARGB value of |
DarkSeaGreen |
Gets the system-defined color that has an ARGB value of |
DarkSlateBlue |
Gets the system-defined color that has an ARGB value of |
DarkSlateGray |
Gets the system-defined color that has an ARGB value of |
DarkTurquoise |
Gets the system-defined color that has an ARGB value of |
DarkViolet |
Gets the system-defined color that has an ARGB value of |
DeepPink |
Gets the system-defined color that has an ARGB value of |
DeepSkyBlue |
Gets the system-defined color that has an ARGB value of |
DimGray |
Gets the system-defined color that has an ARGB value of |
DodgerBlue |
Gets the system-defined color that has an ARGB value of |
Firebrick |
Gets the system-defined color that has an ARGB value of |
FloralWhite |
Gets the system-defined color that has an ARGB value of |
ForestGreen |
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 |
GhostWhite |
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 |
GreenYellow |
Gets the system-defined color that has an ARGB value of |
Honeydew |
Gets the system-defined color that has an ARGB value of |
HotPink |
Gets the system-defined color that has an ARGB value of |
IndianRed |
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 |
LavenderBlush |
Gets the system-defined color that has an ARGB value of |
LawnGreen |
Gets the system-defined color that has an ARGB value of |
LemonChiffon |
Gets the system-defined color that has an ARGB value of |
LightBlue |
Gets the system-defined color that has an ARGB value of |
LightCoral |
Gets the system-defined color that has an ARGB value of |
LightCyan |
Gets the system-defined color that has an ARGB value of |
LightGoldenrodYellow |
Gets the system-defined color that has an ARGB value of |
LightGray |
Gets the system-defined color that has an ARGB value of |
LightGreen |
Gets the system-defined color that has an ARGB value of |
LightPink |
Gets the system-defined color that has an ARGB value of |
LightSalmon |
Gets the system-defined color that has an ARGB value of |
LightSeaGreen |
Gets the system-defined color that has an ARGB value of |
LightSkyBlue |
Gets the system-defined color that has an ARGB value of |
LightSlateGray |
Gets the system-defined color that has an ARGB value of |
LightSteelBlue |
Gets the system-defined color that has an ARGB value of |
LightYellow |
Gets the system-defined color that has an ARGB value of |
Lime |
Gets the system-defined color that has an ARGB value of |
LimeGreen |
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 |
MediumAquamarine |
Gets the system-defined color that has an ARGB value of |
MediumBlue |
Gets the system-defined color that has an ARGB value of |
MediumOrchid |
Gets the system-defined color that has an ARGB value of |
MediumPurple |
Gets the system-defined color that has an ARGB value of |
MediumSeaGreen |
Gets the system-defined color that has an ARGB value of |
MediumSlateBlue |
Gets the system-defined color that has an ARGB value of |
MediumSpringGreen |
Gets the system-defined color that has an ARGB value of |
MediumTurquoise |
Gets the system-defined color that has an ARGB value of |
MediumVioletRed |
Gets the system-defined color that has an ARGB value of |
MidnightBlue |
Gets the system-defined color that has an ARGB value of |
MintCream |
Gets the system-defined color that has an ARGB value of |
MistyRose |
Gets the system-defined color that has an ARGB value of |
Moccasin |
Gets the system-defined color that has an ARGB value of |
NavajoWhite |
Gets the system-defined color that has an ARGB value of |
Navy |
Gets the system-defined color that has an ARGB value of |
OldLace |
Gets the system-defined color that has an ARGB value of |
Olive |
Gets the system-defined color that has an ARGB value of |
OliveDrab |
Gets the system-defined color that has an ARGB value of |
Orange |
Gets the system-defined color that has an ARGB value of |
OrangeRed |
Gets the system-defined color that has an ARGB value of |
Orchid |
Gets the system-defined color that has an ARGB value of |
PaleGoldenrod |
Gets the system-defined color that has an ARGB value of |
PaleGreen |
Gets the system-defined color that has an ARGB value of |
PaleTurquoise |
Gets the system-defined color that has an ARGB value of |
PaleVioletRed |
Gets the system-defined color that has an ARGB value of |
PapayaWhip |
Gets the system-defined color that has an ARGB value of |
PeachPuff |
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 |
PowderBlue |
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 |
RosyBrown |
Gets the system-defined color that has an ARGB value of |
RoyalBlue |
Gets the system-defined color that has an ARGB value of |
SaddleBrown |
Gets the system-defined color that has an ARGB value of |
Salmon |
Gets the system-defined color that has an ARGB value of |
SandyBrown |
Gets the system-defined color that has an ARGB value of |
SeaGreen |
Gets the system-defined color that has an ARGB value of |
SeaShell |
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 |
SkyBlue |
Gets the system-defined color that has an ARGB value of |
SlateBlue |
Gets the system-defined color that has an ARGB value of |
SlateGray |
Gets the system-defined color that has an ARGB value of |
Snow |
Gets the system-defined color that has an ARGB value of |
SpringGreen |
Gets the system-defined color that has an ARGB value of |
SteelBlue |
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 |
WhiteSmoke |
Gets the system-defined color that has an ARGB value of |
Yellow |
Gets the system-defined color that has an ARGB value of |
YellowGreen |
Gets the system-defined color that has an ARGB value of |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |