Brushes 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 SolidColorBrush objects.
public ref class Brushes sealed
public sealed class Brushes
type Brushes = class
Public NotInheritable Class Brushes
- Inheritance
-
Brushes
Remarks
Color names in Windows Presentation Foundation match the color names in .NET Framework and Windows Forms. These colors and their names are based on the UNIX X11 color values.
The following image shows the color of each predefined brush, 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 that you can paint an area. For example, try using 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 solid fill color that has a hexadecimal value of |
AntiqueWhite |
Gets the solid fill color that has a hexadecimal value of |
Aqua |
Gets the solid fill color that has a hexadecimal value of |
Aquamarine |
Gets the solid fill color that has a hexadecimal value of |
Azure |
Gets the solid fill color that has a hexadecimal value of |
Beige |
Gets the solid fill color that has a hexadecimal value of |
Bisque |
Gets the solid fill color that has a hexadecimal value of |
Black |
Gets the solid fill color that has a hexadecimal value of |
BlanchedAlmond |
Gets the solid fill color that has a hexadecimal value of |
Blue |
Gets the solid fill color that has a hexadecimal value of |
BlueViolet |
Gets the solid fill color that has a hexadecimal value of |
Brown |
Gets the solid fill color that has a hexadecimal value of |
BurlyWood |
Gets the solid fill color that has a hexadecimal value of |
CadetBlue |
Gets the solid fill color that has a hexadecimal value of |
Chartreuse |
Gets the solid fill color that has a hexadecimal value of |
Chocolate |
Gets the solid fill color that has a hexadecimal value of |
Coral |
Gets the solid fill color that has a hexadecimal value of |
CornflowerBlue |
Gets the solid fill color that has a hexadecimal value of |
Cornsilk |
Gets the solid fill color that has a hexadecimal value of |
Crimson |
Gets the solid fill color that has a hexadecimal value of |
Cyan |
Gets the solid fill color that has a hexadecimal value of |
DarkBlue |
Gets the solid fill color that has a hexadecimal value of |
DarkCyan |
Gets the solid fill color that has a hexadecimal value of |
DarkGoldenrod |
Gets the solid fill color that has a hexadecimal value of |
DarkGray |
Gets the solid fill color that has a hexadecimal value of |
DarkGreen |
Gets the solid fill color that has a hexadecimal value of |
DarkKhaki |
Gets the solid fill color that has a hexadecimal value of |
DarkMagenta |
Gets the solid fill color that has a hexadecimal value of |
DarkOliveGreen |
Gets the solid fill color that has a hexadecimal value of |
DarkOrange |
Gets the solid fill color that has a hexadecimal value of |
DarkOrchid |
Gets the solid fill color that has a hexadecimal value of |
DarkRed |
Gets the solid fill color that has a hexadecimal value of |
DarkSalmon |
Gets the solid fill color that has a hexadecimal value of |
DarkSeaGreen |
Gets the solid fill color that has a hexadecimal value of |
DarkSlateBlue |
Gets the solid fill color that has a hexadecimal value of |
DarkSlateGray |
Gets the solid fill color that has a hexadecimal value of |
DarkTurquoise |
Gets the solid fill color that has a hexadecimal value of |
DarkViolet |
Gets the solid fill color that has a hexadecimal value of |
DeepPink |
Gets the solid fill color that has a hexadecimal value of |
DeepSkyBlue |
Gets the solid fill color that has a hexadecimal value of |
DimGray |
Gets the solid fill color that has a hexadecimal value of |
DodgerBlue |
Gets the solid fill color that has a hexadecimal value of |
Firebrick |
Gets the solid fill color that has a hexadecimal value of |
FloralWhite |
Gets the solid fill color that has a hexadecimal value of |
ForestGreen |
Gets the solid fill color that has a hexadecimal value of |
Fuchsia |
Gets the solid fill color that has a hexadecimal value of |
Gainsboro |
Gets the solid fill color that has a hexadecimal value of |
GhostWhite |
Gets the solid fill color that has a hexadecimal value of |
Gold |
Gets the solid fill color that has a hexadecimal value of |
Goldenrod |
Gets the solid fill color that has a hexadecimal value of |
Gray |
Gets the solid fill color that has a hexadecimal value of |
Green |
Gets the solid fill color that has a hexadecimal value of |
GreenYellow |
Gets the solid fill color that has a hexadecimal value of |
Honeydew |
Gets the solid fill color that has a hexadecimal value of |
HotPink |
Gets the solid fill color that has a hexadecimal value of |
IndianRed |
Gets the solid fill color that has a hexadecimal value of |
Indigo |
Gets the solid fill color that has a hexadecimal value of |
Ivory |
Gets the solid fill color that has a hexadecimal value of |
Khaki |
Gets the solid fill color that has a hexadecimal value of |
Lavender |
Gets the solid fill color that has a hexadecimal value of |
LavenderBlush |
Gets the solid fill color that has a hexadecimal value of |
LawnGreen |
Gets the solid fill color that has a hexadecimal value of |
LemonChiffon |
Gets the solid fill color that has a hexadecimal value of |
LightBlue |
Gets the solid fill color that has a hexadecimal value of |
LightCoral |
Gets the solid fill color that has a hexadecimal value of |
LightCyan |
Gets the solid fill color that has a hexadecimal value of |
LightGoldenrodYellow |
Gets the solid fill color that has a hexadecimal value of |
LightGray |
Gets the solid fill color that has a hexadecimal value of |
LightGreen |
Gets the solid fill color that has a hexadecimal value of |
LightPink |
Gets the solid fill color that has a hexadecimal value of |
LightSalmon |
Gets the solid fill color that has a hexadecimal value of |
LightSeaGreen |
Gets the solid fill color that has a hexadecimal value of |
LightSkyBlue |
Gets the solid fill color that has a hexadecimal value of |
LightSlateGray |
Gets the solid fill color that has a hexadecimal value of |
LightSteelBlue |
Gets the solid fill color that has a hexadecimal value of |
LightYellow |
Gets the solid fill color that has a hexadecimal value of |
Lime |
Gets the solid fill color that has a hexadecimal value of |
LimeGreen |
Gets the solid fill color that has a hexadecimal value of |
Linen |
Gets the solid fill color that has a hexadecimal value of |
Magenta |
Gets the solid fill color that has a hexadecimal value of |
Maroon |
Gets the solid fill color that has a hexadecimal value of |
MediumAquamarine |
Gets the solid fill color that has a hexadecimal value of |
MediumBlue |
Gets the solid fill color that has a hexadecimal value of |
MediumOrchid |
Gets the solid fill color that has a hexadecimal value of |
MediumPurple |
Gets the solid fill color that has a hexadecimal value of |
MediumSeaGreen |
Gets the solid fill color that has a hexadecimal value of |
MediumSlateBlue |
Gets the solid fill color that has a hexadecimal value of |
MediumSpringGreen |
Gets the solid fill color that has a hexadecimal value of |
MediumTurquoise |
Gets the solid fill color that has a hexadecimal value of |
MediumVioletRed |
Gets the solid fill color that has a hexadecimal value of |
MidnightBlue |
Gets the solid fill color that has a hexadecimal value of |
MintCream |
Gets the solid fill color that has a hexadecimal value of |
MistyRose |
Gets the solid fill color that has a hexadecimal value of |
Moccasin |
Gets the solid fill color that has a hexadecimal value of |
NavajoWhite |
Gets the solid fill color that has a hexadecimal value of |
Navy |
Gets the solid fill color that has a hexadecimal value of |
OldLace |
Gets the solid fill color that has a hexadecimal value of |
Olive |
Gets the solid fill color that has a hexadecimal value of |
OliveDrab |
Gets the solid fill color that has a hexadecimal value of |
Orange |
Gets the solid fill color that has a hexadecimal value of |
OrangeRed |
Gets the solid fill color that has a hexadecimal value of |
Orchid |
Gets the solid fill color that has a hexadecimal value of |
PaleGoldenrod |
Gets the solid fill color that has a hexadecimal value of |
PaleGreen |
Gets the solid fill color that has a hexadecimal value of |
PaleTurquoise |
Gets the solid fill color that has a hexadecimal value of |
PaleVioletRed |
Gets the solid fill color that has a hexadecimal value of |
PapayaWhip |
Gets the solid fill color that has a hexadecimal value of |
PeachPuff |
Gets the solid fill color that has a hexadecimal value of |
Peru |
Gets the solid fill color that has a hexadecimal value of |
Pink |
Gets the solid fill color that has a hexadecimal value of |
Plum |
Gets the solid fill color that has a hexadecimal value of |
PowderBlue |
Gets the solid fill color that has a hexadecimal value of |
Purple |
Gets the solid fill color that has a hexadecimal value of |
Red |
Gets the solid fill color that has a hexadecimal value of |
RosyBrown |
Gets the solid fill color that has a hexadecimal value of |
RoyalBlue |
Gets the solid fill color that has a hexadecimal value of |
SaddleBrown |
Gets the solid fill color that has a hexadecimal value of |
Salmon |
Gets the solid fill color that has a hexadecimal value of |
SandyBrown |
Gets the solid fill color that has a hexadecimal value of |
SeaGreen |
Gets the solid fill color that has a hexadecimal value of |
SeaShell |
Gets the solid fill color that has a hexadecimal value of |
Sienna |
Gets the solid fill color that has a hexadecimal value of |
Silver |
Gets the solid fill color that has a hexadecimal value of |
SkyBlue |
Gets the solid fill color that has a hexadecimal value of |
SlateBlue |
Gets the solid fill color that has a hexadecimal value of |
SlateGray |
Gets the solid fill color that has a hexadecimal value of |
Snow |
Gets the solid fill color that has a hexadecimal value of |
SpringGreen |
Gets the solid fill color that has a hexadecimal value of |
SteelBlue |
Gets the solid fill color that has a hexadecimal value of |
Tan |
Gets the solid fill color that has a hexadecimal value of |
Teal |
Gets the solid fill color that has a hexadecimal value of |
Thistle |
Gets the solid fill color that has a hexadecimal value of |
Tomato |
Gets the solid fill color that has a hexadecimal value of |
Transparent |
Gets the solid fill color that has a hexadecimal value of |
Turquoise |
Gets the solid fill color that has a hexadecimal value of |
Violet |
Gets the solid fill color that has a hexadecimal value of |
Wheat |
Gets the solid fill color that has a hexadecimal value of |
White |
Gets the solid fill color that has a hexadecimal value of |
WhiteSmoke |
Gets the solid fill color that has a hexadecimal value of |
Yellow |
Gets the solid fill color that has a hexadecimal value of |
YellowGreen |
Gets the solid fill color that has a hexadecimal 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) |