Brushes 类

定义

实现一组预定义的 SolidColorBrush 对象。Implements a set of predefined SolidColorBrush objects.

public ref class Brushes sealed
public sealed class Brushes
type Brushes = class
Public NotInheritable Class Brushes
继承
Brushes

注解

Windows Presentation Foundation 中的颜色名称与 .NET Framework、Windows 窗体和Microsoft Internet ExplorerMicrosoft Internet Explorer中的颜色名称匹配。Color names in Windows Presentation Foundation match the color names in the .NET Framework, Windows Forms, and Microsoft Internet ExplorerMicrosoft Internet Explorer. 这些颜色及其名称基于 UNIX X11 颜色值。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

请参阅Brush类, 了解用于绘制区域的各种其他更复杂的方法。See the Brush class for a variety of other, more complex, ways that you can paint an area. 例如, 尝试使用渐变 (LinearGradientBrushRadialGradientBrush) 或图像 (ImageBrush)。For example, try using gradients (LinearGradientBrush, RadialGradientBrush) or images (ImageBrush).

XAML 文本用法XAML Text Usage

你不能在中XAMLXAML声明此托管类, 但可以使用其静态属性在中XAMLXAML分配值。You cannot declare this managed class in XAMLXAML, but you can use its static properties to assign values in XAMLXAML.

属性

AliceBlue

获取具有十六进制值 #FFF0F8FF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF0F8FF.

AntiqueWhite

获取具有十六进制值 #FFFAEBD7 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFAEBD7.

Aqua

获取具有十六进制值 #FF00FFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00FFFF.

Aquamarine

获取具有十六进制值 #FF7FFFD4 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF7FFFD4.

Azure

获取具有十六进制值 #FFF0FFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF0FFFF.

Beige

获取具有十六进制值 #FFF5F5DC 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF5F5DC.

Bisque

获取具有十六进制值 #FFFFE4C4 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFE4C4.

Black

获取具有十六进制值 #FF000000 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF000000.

BlanchedAlmond

获取具有十六进制值 #FFFFEBCD 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFEBCD.

Blue

获取具有十六进制值 #FF0000FF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF0000FF.

BlueViolet

获取具有十六进制值 #FF8A2BE2 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF8A2BE2.

Brown

获取具有十六进制值 #FFA52A2A 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFA52A2A.

BurlyWood

获取具有十六进制值 #FFDEB887 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDEB887.

CadetBlue

获取具有十六进制值 #FF5F9EA0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF5F9EA0.

Chartreuse

获取具有十六进制值 #FF7FFF00 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF7FFF00.

Chocolate

获取具有十六进制值 #FFD2691E 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFD2691E.

Coral

获取具有十六进制值 #FFFF7F50 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF7F50.

CornflowerBlue

获取具有十六进制值 #FF6495ED 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF6495ED.

Cornsilk

获取具有十六进制值 #FFFFF8DC 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFF8DC.

Crimson

获取具有十六进制值 #FFDC143C 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDC143C.

Cyan

获取具有十六进制值 #FF00FFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00FFFF.

DarkBlue

获取具有十六进制值 #FF00008B 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00008B.

DarkCyan

获取具有十六进制值 #FF008B8B 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF008B8B.

DarkGoldenrod

获取具有十六进制值 #FFB8860B 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFB8860B.

DarkGray

获取具有十六进制值 #FFA9A9A9 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFA9A9A9.

DarkGreen

获取具有十六进制值 #FF006400 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF006400.

DarkKhaki

获取具有十六进制值 #FFBDB76B 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFBDB76B.

DarkMagenta

获取具有十六进制值 #FF8B008B 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF8B008B.

DarkOliveGreen

获取具有十六进制值 #FF556B2F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF556B2F.

DarkOrange

获取具有十六进制值 #FFFF8C00 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF8C00.

DarkOrchid

获取具有十六进制值 #FF9932CC 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF9932CC.

DarkRed

获取具有十六进制值 #FF8B0000 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF8B0000.

DarkSalmon

获取具有十六进制值 #FFE9967A 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFE9967A.

DarkSeaGreen

获取具有十六进制值 #FF8FBC8F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF8FBC8F.

DarkSlateBlue

获取具有十六进制值 #FF483D8B 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF483D8B.

DarkSlateGray

获取具有十六进制值 #FF2F4F4F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF2F4F4F.

DarkTurquoise

获取具有十六进制值 #FF00CED1 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00CED1.

DarkViolet

获取具有十六进制值 #FF9400D3 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF9400D3.

DeepPink

获取具有十六进制值 #FFFF1493 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF1493.

DeepSkyBlue

获取具有十六进制值 #FF00BFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00BFFF.

DimGray

获取具有十六进制值 #FF696969 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF696969.

DodgerBlue

获取具有十六进制值 #FF1E90FF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF1E90FF.

Firebrick

获取具有十六进制值 #FFB22222 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFB22222.

FloralWhite

获取具有十六进制值 #FFFFFAF0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFAF0.

ForestGreen

获取具有十六进制值 #FF228B22 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF228B22.

Fuchsia

获取具有十六进制值 #FFFF00FF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF00FF.

Gainsboro

获取具有十六进制值 #FFDCDCDC 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDCDCDC.

GhostWhite

获取具有十六进制值 #FFF8F8FF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF8F8FF.

Gold

获取具有十六进制值 #FFFFD700 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFD700.

Goldenrod

获取具有十六进制值 #FFDAA520 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDAA520.

Gray

获取具有十六进制值 #FF808080 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF808080.

Green

获取具有十六进制值 #FF008000 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF008000.

GreenYellow

获取具有十六进制值 #FFADFF2F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFADFF2F.

Honeydew

获取具有十六进制值 #FFF0FFF0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF0FFF0.

HotPink

获取具有十六进制值 #FFFF69B4 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF69B4.

IndianRed

获取具有十六进制值 #FFCD5C5C 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFCD5C5C.

Indigo

获取具有十六进制值 #FF4B0082 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF4B0082.

Ivory

获取具有十六进制值 #FFFFFFF0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFFF0.

Khaki

获取具有十六进制值 #FFF0E68C 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF0E68C.

Lavender

获取具有十六进制值 #FFE6E6FA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFE6E6FA.

LavenderBlush

获取具有十六进制值 #FFFFF0F5 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFF0F5.

LawnGreen

获取具有十六进制值 #FF7CFC00 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF7CFC00.

LemonChiffon

获取具有十六进制值 #FFFFFACD 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFACD.

LightBlue

获取具有十六进制值 #FFADD8E6 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFADD8E6.

LightCoral

获取具有十六进制值 #FFF08080 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF08080.

LightCyan

获取具有十六进制值 #FFE0FFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFE0FFFF.

LightGoldenrodYellow

获取具有十六进制值 #FFFAFAD2 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFAFAD2.

LightGray

获取具有十六进制值 #FFD3D3D3 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFD3D3D3.

LightGreen

获取具有十六进制值 #FF90EE90 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF90EE90.

LightPink

获取具有十六进制值 #FFFFB6C1 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFB6C1.

LightSalmon

获取具有十六进制值 #FFFFA07A 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFA07A.

LightSeaGreen

获取具有十六进制值 #FF20B2AA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF20B2AA.

LightSkyBlue

获取具有十六进制值 #FF87CEFA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF87CEFA.

LightSlateGray

获取具有十六进制值 #FF778899 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF778899.

LightSteelBlue

获取具有十六进制值 #FFB0C4DE 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFB0C4DE.

LightYellow

获取具有十六进制值 #FFFFFFE0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFFE0.

Lime

获取具有十六进制值 #FF00FF00 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00FF00.

LimeGreen

获取具有十六进制值 #FF32CD32 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF32CD32.

Linen

获取具有十六进制值 #FFFAF0E6 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFAF0E6.

Magenta

获取具有十六进制值 #FFFF00FF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF00FF.

Maroon

获取具有十六进制值 #FF800000 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF800000.

MediumAquamarine

获取具有十六进制值 #FF66CDAA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF66CDAA.

MediumBlue

获取具有十六进制值 #FF0000CD 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF0000CD.

MediumOrchid

获取具有十六进制值 #FFBA55D3 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFBA55D3.

MediumPurple

获取具有十六进制值 #FF9370DB 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF9370DB.

MediumSeaGreen

获取具有十六进制值 #FF3CB371 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF3CB371.

MediumSlateBlue

获取具有十六进制值 #FF7B68EE 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF7B68EE.

MediumSpringGreen

获取具有十六进制值 #FF00FA9A 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00FA9A.

MediumTurquoise

获取具有十六进制值 #FF48D1CC 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF48D1CC.

MediumVioletRed

获取具有十六进制值 #FFC71585 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFC71585.

MidnightBlue

获取具有十六进制值 #FF191970 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF191970.

MintCream

获取具有十六进制值 #FFF5FFFA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF5FFFA.

MistyRose

获取具有十六进制值 #FFFFE4E1 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFE4E1.

Moccasin

获取具有十六进制值 #FFFFE4B5 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFE4B5.

NavajoWhite

获取具有十六进制值 #FFFFDEAD 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFDEAD.

Navy

获取具有十六进制值 #FF000080 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF000080.

OldLace

获取具有十六进制值 #FFFDF5E6 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFDF5E6.

Olive

获取具有十六进制值 #FF808000 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF808000.

OliveDrab

获取具有十六进制值 #FF6B8E23 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF6B8E23.

Orange

获取具有十六进制值 #FFFFA500 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFA500.

OrangeRed

获取具有十六进制值 #FFFF4500 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF4500.

Orchid

获取具有十六进制值 #FFDA70D6 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDA70D6.

PaleGoldenrod

获取具有十六进制值 #FFEEE8AA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFEEE8AA.

PaleGreen

获取具有十六进制值 #FF98FB98 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF98FB98.

PaleTurquoise

获取具有十六进制值 #FFAFEEEE 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFAFEEEE.

PaleVioletRed

获取具有十六进制值 #FFDB7093 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDB7093.

PapayaWhip

获取具有十六进制值 #FFFFEFD5 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFEFD5.

PeachPuff

获取具有十六进制值 #FFFFDAB9 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFDAB9.

Peru

获取具有十六进制值 #FFCD853F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFCD853F.

Pink

获取具有十六进制值 #FFFFC0CB 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFC0CB.

Plum

获取具有十六进制值 #FFDDA0DD 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFDDA0DD.

PowderBlue

获取具有十六进制值 #FFB0E0E6 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFB0E0E6.

Purple

获取具有十六进制值 #FF800080 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF800080.

Red

获取具有十六进制值 #FFFF0000 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF0000.

RosyBrown

获取具有十六进制值 #FFBC8F8F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFBC8F8F.

RoyalBlue

获取具有十六进制值 #FF4169E1 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF4169E1.

SaddleBrown

获取具有十六进制值 #FF8B4513 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF8B4513.

Salmon

获取具有十六进制值 #FFFA8072 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFA8072.

SandyBrown

获取具有十六进制值 #FFF4A460 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF4A460.

SeaGreen

获取具有十六进制值 #FF2E8B57 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF2E8B57.

SeaShell

获取具有十六进制值 #FFFFF5EE 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFF5EE.

Sienna

获取具有十六进制值 #FFA0522D 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFA0522D.

Silver

获取具有十六进制值 #FFC0C0C0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFC0C0C0.

SkyBlue

获取具有十六进制值 #FF87CEEB 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF87CEEB.

SlateBlue

获取具有十六进制值 #FF6A5ACD 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF6A5ACD.

SlateGray

获取具有十六进制值 #FF708090 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF708090.

Snow

获取具有十六进制值 #FFFFFAFA 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFAFA.

SpringGreen

获取具有十六进制值 #FF00FF7F 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF00FF7F.

SteelBlue

获取具有十六进制值 #FF4682B4 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF4682B4.

Tan

获取具有十六进制值 #FFD2B48C 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFD2B48C.

Teal

获取具有十六进制值 #FF008080 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF008080.

Thistle

获取具有十六进制值 #FFD8BFD8 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFD8BFD8.

Tomato

获取具有十六进制值 #FFFF6347 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFF6347.

Transparent

获取具有十六进制值 #00FFFFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #00FFFFFF.

Turquoise

获取具有十六进制值 #FF40E0D0 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF40E0D0.

Violet

获取具有十六进制值 #FFEE82EE 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFEE82EE.

Wheat

获取具有十六进制值 #FFF5DEB3 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF5DEB3.

White

获取具有十六进制值 #FFFFFFFF 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFFFF.

WhiteSmoke

获取具有十六进制值 #FFF5F5F5 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFF5F5F5.

Yellow

获取具有十六进制值 #FFFFFF00 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FFFFFF00.

YellowGreen

获取具有十六进制值 #FF9ACD32 的纯色填充颜色。Gets the solid fill color that has a hexadecimal value of #FF9ACD32.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅