Επεξεργασία

Κοινή χρήση μέσω


Brushes Class

Definition

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.

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

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 #FFF0F8FF.

AntiqueWhite

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

Aqua

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

Aquamarine

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

Azure

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

Beige

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

Bisque

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

Black

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

BlanchedAlmond

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

Blue

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

BlueViolet

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

Brown

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

BurlyWood

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

CadetBlue

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

Chartreuse

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

Chocolate

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

Coral

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

CornflowerBlue

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

Cornsilk

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

Crimson

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

Cyan

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

DarkBlue

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

DarkCyan

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

DarkGoldenrod

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

DarkGray

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

DarkGreen

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

DarkKhaki

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

DarkMagenta

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

DarkOliveGreen

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

DarkOrange

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

DarkOrchid

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

DarkRed

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

DarkSalmon

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

DarkSeaGreen

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

DarkSlateBlue

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

DarkSlateGray

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

DarkTurquoise

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

DarkViolet

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

DeepPink

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

DeepSkyBlue

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

DimGray

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

DodgerBlue

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

Firebrick

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

FloralWhite

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

ForestGreen

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

Fuchsia

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

Gainsboro

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

GhostWhite

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

Gold

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

Goldenrod

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

Gray

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

Green

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

GreenYellow

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

Honeydew

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

HotPink

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

IndianRed

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

Indigo

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

Ivory

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

Khaki

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

Lavender

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

LavenderBlush

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

LawnGreen

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

LemonChiffon

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

LightBlue

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

LightCoral

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

LightCyan

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

LightGoldenrodYellow

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

LightGray

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

LightGreen

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

LightPink

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

LightSalmon

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

LightSeaGreen

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

LightSkyBlue

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

LightSlateGray

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

LightSteelBlue

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

LightYellow

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

Lime

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

LimeGreen

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

Linen

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

Magenta

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

Maroon

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

MediumAquamarine

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

MediumBlue

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

MediumOrchid

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

MediumPurple

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

MediumSeaGreen

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

MediumSlateBlue

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

MediumSpringGreen

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

MediumTurquoise

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

MediumVioletRed

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

MidnightBlue

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

MintCream

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

MistyRose

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

Moccasin

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

NavajoWhite

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

Navy

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

OldLace

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

Olive

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

OliveDrab

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

Orange

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

OrangeRed

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

Orchid

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

PaleGoldenrod

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

PaleGreen

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

PaleTurquoise

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

PaleVioletRed

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

PapayaWhip

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

PeachPuff

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

Peru

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

Pink

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

Plum

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

PowderBlue

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

Purple

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

Red

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

RosyBrown

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

RoyalBlue

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

SaddleBrown

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

Salmon

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

SandyBrown

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

SeaGreen

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

SeaShell

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

Sienna

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

Silver

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

SkyBlue

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

SlateBlue

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

SlateGray

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

Snow

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

SpringGreen

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

SteelBlue

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

Tan

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

Teal

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

Thistle

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

Tomato

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

Transparent

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

Turquoise

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

Violet

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

Wheat

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

White

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

WhiteSmoke

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

Yellow

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

YellowGreen

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

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)

Applies to

See also