Brushes Class
TOC
Collapse the table of content
Expand the table of content

Brushes Class

 

Implements a set of predefined SolidColorBrush objects.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Media.Brushes

public sealed class Brushes

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAliceBlue

Gets the solid fill color that has a hexadecimal value of #FFF0F8FF.

System_CAPS_pubpropertySystem_CAPS_staticAntiqueWhite

Gets the solid fill color that has a hexadecimal value of #FFFAEBD7.

System_CAPS_pubpropertySystem_CAPS_staticAqua

Gets the solid fill color that has a hexadecimal value of #FF00FFFF.

System_CAPS_pubpropertySystem_CAPS_staticAquamarine

Gets the solid fill color that has a hexadecimal value of #FF7FFFD4.

System_CAPS_pubpropertySystem_CAPS_staticAzure

Gets the solid fill color that has a hexadecimal value of #FFF0FFFF.

System_CAPS_pubpropertySystem_CAPS_staticBeige

Gets the solid fill color that has a hexadecimal value of #FFF5F5DC.

System_CAPS_pubpropertySystem_CAPS_staticBisque

Gets the solid fill color that has a hexadecimal value of #FFFFE4C4.

System_CAPS_pubpropertySystem_CAPS_staticBlack

Gets the solid fill color that has a hexadecimal value of #FF000000.

System_CAPS_pubpropertySystem_CAPS_staticBlanchedAlmond

Gets the solid fill color that has a hexadecimal value of #FFFFEBCD.

System_CAPS_pubpropertySystem_CAPS_staticBlue

Gets the solid fill color that has a hexadecimal value of #FF0000FF.

System_CAPS_pubpropertySystem_CAPS_staticBlueViolet

Gets the solid fill color that has a hexadecimal value of #FF8A2BE2.

System_CAPS_pubpropertySystem_CAPS_staticBrown

Gets the solid fill color that has a hexadecimal value of #FFA52A2A.

System_CAPS_pubpropertySystem_CAPS_staticBurlyWood

Gets the solid fill color that has a hexadecimal value of #FFDEB887.

System_CAPS_pubpropertySystem_CAPS_staticCadetBlue

Gets the solid fill color that has a hexadecimal value of #FF5F9EA0.

System_CAPS_pubpropertySystem_CAPS_staticChartreuse

Gets the solid fill color that has a hexadecimal value of #FF7FFF00.

System_CAPS_pubpropertySystem_CAPS_staticChocolate

Gets the solid fill color that has a hexadecimal value of #FFD2691E.

System_CAPS_pubpropertySystem_CAPS_staticCoral

Gets the solid fill color that has a hexadecimal value of #FFFF7F50.

System_CAPS_pubpropertySystem_CAPS_staticCornflowerBlue

Gets the solid fill color that has a hexadecimal value of #FF6495ED.

System_CAPS_pubpropertySystem_CAPS_staticCornsilk

Gets the solid fill color that has a hexadecimal value of #FFFFF8DC.

System_CAPS_pubpropertySystem_CAPS_staticCrimson

Gets the solid fill color that has a hexadecimal value of #FFDC143C.

System_CAPS_pubpropertySystem_CAPS_staticCyan

Gets the solid fill color that has a hexadecimal value of #FF00FFFF.

System_CAPS_pubpropertySystem_CAPS_staticDarkBlue

Gets the solid fill color that has a hexadecimal value of #FF00008B.

System_CAPS_pubpropertySystem_CAPS_staticDarkCyan

Gets the solid fill color that has a hexadecimal value of #FF008B8B.

System_CAPS_pubpropertySystem_CAPS_staticDarkGoldenrod

Gets the solid fill color that has a hexadecimal value of #FFB8860B.

System_CAPS_pubpropertySystem_CAPS_staticDarkGray

Gets the solid fill color that has a hexadecimal value of #FFA9A9A9.

System_CAPS_pubpropertySystem_CAPS_staticDarkGreen

Gets the solid fill color that has a hexadecimal value of #FF006400.

System_CAPS_pubpropertySystem_CAPS_staticDarkKhaki

Gets the solid fill color that has a hexadecimal value of #FFBDB76B.

System_CAPS_pubpropertySystem_CAPS_staticDarkMagenta

Gets the solid fill color that has a hexadecimal value of #FF8B008B.

System_CAPS_pubpropertySystem_CAPS_staticDarkOliveGreen

Gets the solid fill color that has a hexadecimal value of #FF556B2F.

System_CAPS_pubpropertySystem_CAPS_staticDarkOrange

Gets the solid fill color that has a hexadecimal value of #FFFF8C00.

System_CAPS_pubpropertySystem_CAPS_staticDarkOrchid

Gets the solid fill color that has a hexadecimal value of #FF9932CC.

System_CAPS_pubpropertySystem_CAPS_staticDarkRed

Gets the solid fill color that has a hexadecimal value of #FF8B0000.

System_CAPS_pubpropertySystem_CAPS_staticDarkSalmon

Gets the solid fill color that has a hexadecimal value of #FFE9967A.

System_CAPS_pubpropertySystem_CAPS_staticDarkSeaGreen

Gets the solid fill color that has a hexadecimal value of #FF8FBC8F.

System_CAPS_pubpropertySystem_CAPS_staticDarkSlateBlue

Gets the solid fill color that has a hexadecimal value of #FF483D8B.

System_CAPS_pubpropertySystem_CAPS_staticDarkSlateGray

Gets the solid fill color that has a hexadecimal value of #FF2F4F4F.

System_CAPS_pubpropertySystem_CAPS_staticDarkTurquoise

Gets the solid fill color that has a hexadecimal value of #FF00CED1.

System_CAPS_pubpropertySystem_CAPS_staticDarkViolet

Gets the solid fill color that has a hexadecimal value of #FF9400D3.

System_CAPS_pubpropertySystem_CAPS_staticDeepPink

Gets the solid fill color that has a hexadecimal value of #FFFF1493.

System_CAPS_pubpropertySystem_CAPS_staticDeepSkyBlue

Gets the solid fill color that has a hexadecimal value of #FF00BFFF.

System_CAPS_pubpropertySystem_CAPS_staticDimGray

Gets the solid fill color that has a hexadecimal value of #FF696969.

System_CAPS_pubpropertySystem_CAPS_staticDodgerBlue

Gets the solid fill color that has a hexadecimal value of #FF1E90FF.

System_CAPS_pubpropertySystem_CAPS_staticFirebrick

Gets the solid fill color that has a hexadecimal value of #FFB22222.

System_CAPS_pubpropertySystem_CAPS_staticFloralWhite

Gets the solid fill color that has a hexadecimal value of #FFFFFAF0.

System_CAPS_pubpropertySystem_CAPS_staticForestGreen

Gets the solid fill color that has a hexadecimal value of #FF228B22.

System_CAPS_pubpropertySystem_CAPS_staticFuchsia

Gets the solid fill color that has a hexadecimal value of #FFFF00FF.

System_CAPS_pubpropertySystem_CAPS_staticGainsboro

Gets the solid fill color that has a hexadecimal value of #FFDCDCDC.

System_CAPS_pubpropertySystem_CAPS_staticGhostWhite

Gets the solid fill color that has a hexadecimal value of #FFF8F8FF.

System_CAPS_pubpropertySystem_CAPS_staticGold

Gets the solid fill color that has a hexadecimal value of #FFFFD700.

System_CAPS_pubpropertySystem_CAPS_staticGoldenrod

Gets the solid fill color that has a hexadecimal value of #FFDAA520.

System_CAPS_pubpropertySystem_CAPS_staticGray

Gets the solid fill color that has a hexadecimal value of #FF808080.

System_CAPS_pubpropertySystem_CAPS_staticGreen

Gets the solid fill color that has a hexadecimal value of #FF008000.

System_CAPS_pubpropertySystem_CAPS_staticGreenYellow

Gets the solid fill color that has a hexadecimal value of #FFADFF2F.

System_CAPS_pubpropertySystem_CAPS_staticHoneydew

Gets the solid fill color that has a hexadecimal value of #FFF0FFF0.

System_CAPS_pubpropertySystem_CAPS_staticHotPink

Gets the solid fill color that has a hexadecimal value of #FFFF69B4.

System_CAPS_pubpropertySystem_CAPS_staticIndianRed

Gets the solid fill color that has a hexadecimal value of #FFCD5C5C.

System_CAPS_pubpropertySystem_CAPS_staticIndigo

Gets the solid fill color that has a hexadecimal value of #FF4B0082.

System_CAPS_pubpropertySystem_CAPS_staticIvory

Gets the solid fill color that has a hexadecimal value of #FFFFFFF0.

System_CAPS_pubpropertySystem_CAPS_staticKhaki

Gets the solid fill color that has a hexadecimal value of #FFF0E68C.

System_CAPS_pubpropertySystem_CAPS_staticLavender

Gets the solid fill color that has a hexadecimal value of #FFE6E6FA.

System_CAPS_pubpropertySystem_CAPS_staticLavenderBlush

Gets the solid fill color that has a hexadecimal value of #FFFFF0F5.

System_CAPS_pubpropertySystem_CAPS_staticLawnGreen

Gets the solid fill color that has a hexadecimal value of #FF7CFC00.

System_CAPS_pubpropertySystem_CAPS_staticLemonChiffon

Gets the solid fill color that has a hexadecimal value of #FFFFFACD.

System_CAPS_pubpropertySystem_CAPS_staticLightBlue

Gets the solid fill color that has a hexadecimal value of #FFADD8E6.

System_CAPS_pubpropertySystem_CAPS_staticLightCoral

Gets the solid fill color that has a hexadecimal value of #FFF08080.

System_CAPS_pubpropertySystem_CAPS_staticLightCyan

Gets the solid fill color that has a hexadecimal value of #FFE0FFFF.

System_CAPS_pubpropertySystem_CAPS_staticLightGoldenrodYellow

Gets the solid fill color that has a hexadecimal value of #FFFAFAD2.

System_CAPS_pubpropertySystem_CAPS_staticLightGray

Gets the solid fill color that has a hexadecimal value of #FFD3D3D3.

System_CAPS_pubpropertySystem_CAPS_staticLightGreen

Gets the solid fill color that has a hexadecimal value of #FF90EE90.

System_CAPS_pubpropertySystem_CAPS_staticLightPink

Gets the solid fill color that has a hexadecimal value of #FFFFB6C1.

System_CAPS_pubpropertySystem_CAPS_staticLightSalmon

Gets the solid fill color that has a hexadecimal value of #FFFFA07A.

System_CAPS_pubpropertySystem_CAPS_staticLightSeaGreen

Gets the solid fill color that has a hexadecimal value of #FF20B2AA.

System_CAPS_pubpropertySystem_CAPS_staticLightSkyBlue

Gets the solid fill color that has a hexadecimal value of #FF87CEFA.

System_CAPS_pubpropertySystem_CAPS_staticLightSlateGray

Gets the solid fill color that has a hexadecimal value of #FF778899.

System_CAPS_pubpropertySystem_CAPS_staticLightSteelBlue

Gets the solid fill color that has a hexadecimal value of #FFB0C4DE.

System_CAPS_pubpropertySystem_CAPS_staticLightYellow

Gets the solid fill color that has a hexadecimal value of #FFFFFFE0.

System_CAPS_pubpropertySystem_CAPS_staticLime

Gets the solid fill color that has a hexadecimal value of #FF00FF00.

System_CAPS_pubpropertySystem_CAPS_staticLimeGreen

Gets the solid fill color that has a hexadecimal value of #FF32CD32.

System_CAPS_pubpropertySystem_CAPS_staticLinen

Gets the solid fill color that has a hexadecimal value of #FFFAF0E6.

System_CAPS_pubpropertySystem_CAPS_staticMagenta

Gets the solid fill color that has a hexadecimal value of #FFFF00FF.

System_CAPS_pubpropertySystem_CAPS_staticMaroon

Gets the solid fill color that has a hexadecimal value of #FF800000.

System_CAPS_pubpropertySystem_CAPS_staticMediumAquamarine

Gets the solid fill color that has a hexadecimal value of #FF66CDAA.

System_CAPS_pubpropertySystem_CAPS_staticMediumBlue

Gets the solid fill color that has a hexadecimal value of #FF0000CD.

System_CAPS_pubpropertySystem_CAPS_staticMediumOrchid

Gets the solid fill color that has a hexadecimal value of #FFBA55D3.

System_CAPS_pubpropertySystem_CAPS_staticMediumPurple

Gets the solid fill color that has a hexadecimal value of #FF9370DB.

System_CAPS_pubpropertySystem_CAPS_staticMediumSeaGreen

Gets the solid fill color that has a hexadecimal value of #FF3CB371.

System_CAPS_pubpropertySystem_CAPS_staticMediumSlateBlue

Gets the solid fill color that has a hexadecimal value of #FF7B68EE.

System_CAPS_pubpropertySystem_CAPS_staticMediumSpringGreen

Gets the solid fill color that has a hexadecimal value of #FF00FA9A.

System_CAPS_pubpropertySystem_CAPS_staticMediumTurquoise

Gets the solid fill color that has a hexadecimal value of #FF48D1CC.

System_CAPS_pubpropertySystem_CAPS_staticMediumVioletRed

Gets the solid fill color that has a hexadecimal value of #FFC71585.

System_CAPS_pubpropertySystem_CAPS_staticMidnightBlue

Gets the solid fill color that has a hexadecimal value of #FF191970.

System_CAPS_pubpropertySystem_CAPS_staticMintCream

Gets the solid fill color that has a hexadecimal value of #FFF5FFFA.

System_CAPS_pubpropertySystem_CAPS_staticMistyRose

Gets the solid fill color that has a hexadecimal value of #FFFFE4E1.

System_CAPS_pubpropertySystem_CAPS_staticMoccasin

Gets the solid fill color that has a hexadecimal value of #FFFFE4B5.

System_CAPS_pubpropertySystem_CAPS_staticNavajoWhite

Gets the solid fill color that has a hexadecimal value of #FFFFDEAD.

System_CAPS_pubpropertySystem_CAPS_staticNavy

Gets the solid fill color that has a hexadecimal value of #FF000080.

System_CAPS_pubpropertySystem_CAPS_staticOldLace

Gets the solid fill color that has a hexadecimal value of #FFFDF5E6.

System_CAPS_pubpropertySystem_CAPS_staticOlive

Gets the solid fill color that has a hexadecimal value of #FF808000.

System_CAPS_pubpropertySystem_CAPS_staticOliveDrab

Gets the solid fill color that has a hexadecimal value of #FF6B8E23.

System_CAPS_pubpropertySystem_CAPS_staticOrange

Gets the solid fill color that has a hexadecimal value of #FFFFA500.

System_CAPS_pubpropertySystem_CAPS_staticOrangeRed

Gets the solid fill color that has a hexadecimal value of #FFFF4500.

System_CAPS_pubpropertySystem_CAPS_staticOrchid

Gets the solid fill color that has a hexadecimal value of #FFDA70D6.

System_CAPS_pubpropertySystem_CAPS_staticPaleGoldenrod

Gets the solid fill color that has a hexadecimal value of #FFEEE8AA.

System_CAPS_pubpropertySystem_CAPS_staticPaleGreen

Gets the solid fill color that has a hexadecimal value of #FF98FB98.

System_CAPS_pubpropertySystem_CAPS_staticPaleTurquoise

Gets the solid fill color that has a hexadecimal value of #FFAFEEEE.

System_CAPS_pubpropertySystem_CAPS_staticPaleVioletRed

Gets the solid fill color that has a hexadecimal value of #FFDB7093.

System_CAPS_pubpropertySystem_CAPS_staticPapayaWhip

Gets the solid fill color that has a hexadecimal value of #FFFFEFD5.

System_CAPS_pubpropertySystem_CAPS_staticPeachPuff

Gets the solid fill color that has a hexadecimal value of #FFFFDAB9.

System_CAPS_pubpropertySystem_CAPS_staticPeru

Gets the solid fill color that has a hexadecimal value of #FFCD853F.

System_CAPS_pubpropertySystem_CAPS_staticPink

Gets the solid fill color that has a hexadecimal value of #FFFFC0CB.

System_CAPS_pubpropertySystem_CAPS_staticPlum

Gets the solid fill color that has a hexadecimal value of #FFDDA0DD.

System_CAPS_pubpropertySystem_CAPS_staticPowderBlue

Gets the solid fill color that has a hexadecimal value of #FFB0E0E6.

System_CAPS_pubpropertySystem_CAPS_staticPurple

Gets the solid fill color that has a hexadecimal value of #FF800080.

System_CAPS_pubpropertySystem_CAPS_staticRed

Gets the solid fill color that has a hexadecimal value of #FFFF0000.

System_CAPS_pubpropertySystem_CAPS_staticRosyBrown

Gets the solid fill color that has a hexadecimal value of #FFBC8F8F.

System_CAPS_pubpropertySystem_CAPS_staticRoyalBlue

Gets the solid fill color that has a hexadecimal value of #FF4169E1.

System_CAPS_pubpropertySystem_CAPS_staticSaddleBrown

Gets the solid fill color that has a hexadecimal value of #FF8B4513.

System_CAPS_pubpropertySystem_CAPS_staticSalmon

Gets the solid fill color that has a hexadecimal value of #FFFA8072.

System_CAPS_pubpropertySystem_CAPS_staticSandyBrown

Gets the solid fill color that has a hexadecimal value of #FFF4A460.

System_CAPS_pubpropertySystem_CAPS_staticSeaGreen

Gets the solid fill color that has a hexadecimal value of #FF2E8B57.

System_CAPS_pubpropertySystem_CAPS_staticSeaShell

Gets the solid fill color that has a hexadecimal value of #FFFFF5EE.

System_CAPS_pubpropertySystem_CAPS_staticSienna

Gets the solid fill color that has a hexadecimal value of #FFA0522D.

System_CAPS_pubpropertySystem_CAPS_staticSilver

Gets the solid fill color that has a hexadecimal value of #FFC0C0C0.

System_CAPS_pubpropertySystem_CAPS_staticSkyBlue

Gets the solid fill color that has a hexadecimal value of #FF87CEEB.

System_CAPS_pubpropertySystem_CAPS_staticSlateBlue

Gets the solid fill color that has a hexadecimal value of #FF6A5ACD.

System_CAPS_pubpropertySystem_CAPS_staticSlateGray

Gets the solid fill color that has a hexadecimal value of #FF708090.

System_CAPS_pubpropertySystem_CAPS_staticSnow

Gets the solid fill color that has a hexadecimal value of #FFFFFAFA.

System_CAPS_pubpropertySystem_CAPS_staticSpringGreen

Gets the solid fill color that has a hexadecimal value of #FF00FF7F.

System_CAPS_pubpropertySystem_CAPS_staticSteelBlue

Gets the solid fill color that has a hexadecimal value of #FF4682B4.

System_CAPS_pubpropertySystem_CAPS_staticTan

Gets the solid fill color that has a hexadecimal value of #FFD2B48C.

System_CAPS_pubpropertySystem_CAPS_staticTeal

Gets the solid fill color that has a hexadecimal value of #FF008080.

System_CAPS_pubpropertySystem_CAPS_staticThistle

Gets the solid fill color that has a hexadecimal value of #FFD8BFD8.

System_CAPS_pubpropertySystem_CAPS_staticTomato

Gets the solid fill color that has a hexadecimal value of #FFFF6347.

System_CAPS_pubpropertySystem_CAPS_staticTransparent

Gets the solid fill color that has a hexadecimal value of #00FFFFFF.

System_CAPS_pubpropertySystem_CAPS_staticTurquoise

Gets the solid fill color that has a hexadecimal value of #FF40E0D0.

System_CAPS_pubpropertySystem_CAPS_staticViolet

Gets the solid fill color that has a hexadecimal value of #FFEE82EE.

System_CAPS_pubpropertySystem_CAPS_staticWheat

Gets the solid fill color that has a hexadecimal value of #FFF5DEB3.

System_CAPS_pubpropertySystem_CAPS_staticWhite

Gets the solid fill color that has a hexadecimal value of #FFFFFFFF.

System_CAPS_pubpropertySystem_CAPS_staticWhiteSmoke

Gets the solid fill color that has a hexadecimal value of #FFF5F5F5.

System_CAPS_pubpropertySystem_CAPS_staticYellow

Gets the solid fill color that has a hexadecimal value of #FFFFFF00.

System_CAPS_pubpropertySystem_CAPS_staticYellowGreen

Gets the solid fill color that has a hexadecimal value of #FF9ACD32.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Color names in Windows Presentation Foundation (WPF) match the color names in Microsoft .NET Framework, Windows Forms, and Microsoft Internet Explorer. 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.

Predefined colors

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).

You cannot declare this managed class in XAML, but you can use its static properties to assign values in XAML.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft