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 Forms 和中的色彩名稱 Microsoft Internet ExplorerMicrosoft Internet ExplorerColor 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

您無法在中宣告這個 managed 類別 XAMLXAML ,但是您可以使用其靜態屬性來指派中的值 XAMLXAMLYou cannot declare this managed class in XAMLXAML, but you can use its static properties to assign values in XAMLXAML.

屬性

AliceBlue

取得純色填滿色彩,其十六進位值為 #FFF0F8FFGets the solid fill color that has a hexadecimal value of #FFF0F8FF.

AntiqueWhite

取得純色填滿色彩,其十六進位值為 #FFFAEBD7Gets the solid fill color that has a hexadecimal value of #FFFAEBD7.

Aqua

取得純色填滿色彩,其十六進位值為 #FF00FFFFGets the solid fill color that has a hexadecimal value of #FF00FFFF.

Aquamarine

取得純色填滿色彩,其十六進位值為 #FF7FFFD4Gets the solid fill color that has a hexadecimal value of #FF7FFFD4.

Azure

取得純色填滿色彩,其十六進位值為 #FFF0FFFFGets the solid fill color that has a hexadecimal value of #FFF0FFFF.

Beige

取得純色填滿色彩,其十六進位值為 #FFF5F5DCGets the solid fill color that has a hexadecimal value of #FFF5F5DC.

Bisque

取得純色填滿色彩,其十六進位值為 #FFFFE4C4Gets the solid fill color that has a hexadecimal value of #FFFFE4C4.

Black

取得純色填滿色彩,其十六進位值為 #FF000000Gets the solid fill color that has a hexadecimal value of #FF000000.

BlanchedAlmond

取得純色填滿色彩,其十六進位值為 #FFFFEBCDGets the solid fill color that has a hexadecimal value of #FFFFEBCD.

Blue

取得純色填滿色彩,其十六進位值為 #FF0000FFGets the solid fill color that has a hexadecimal value of #FF0000FF.

BlueViolet

取得純色填滿色彩,其十六進位值為 #FF8A2BE2Gets the solid fill color that has a hexadecimal value of #FF8A2BE2.

Brown

取得純色填滿色彩,其十六進位值為 #FFA52A2AGets the solid fill color that has a hexadecimal value of #FFA52A2A.

BurlyWood

取得純色填滿色彩,其十六進位值為 #FFDEB887Gets the solid fill color that has a hexadecimal value of #FFDEB887.

CadetBlue

取得純色填滿色彩,其十六進位值為 #FF5F9EA0Gets the solid fill color that has a hexadecimal value of #FF5F9EA0.

Chartreuse

取得純色填滿色彩,其十六進位值為 #FF7FFF00Gets the solid fill color that has a hexadecimal value of #FF7FFF00.

Chocolate

取得純色填滿色彩,其十六進位值為 #FFD2691EGets the solid fill color that has a hexadecimal value of #FFD2691E.

Coral

取得純色填滿色彩,其十六進位值為 #FFFF7F50Gets the solid fill color that has a hexadecimal value of #FFFF7F50.

CornflowerBlue

取得純色填滿色彩,其十六進位值為 #FF6495EDGets the solid fill color that has a hexadecimal value of #FF6495ED.

Cornsilk

取得純色填滿色彩,其十六進位值為 #FFFFF8DCGets the solid fill color that has a hexadecimal value of #FFFFF8DC.

Crimson

取得純色填滿色彩,其十六進位值為 #FFDC143CGets the solid fill color that has a hexadecimal value of #FFDC143C.

Cyan

取得純色填滿色彩,其十六進位值為 #FF00FFFFGets the solid fill color that has a hexadecimal value of #FF00FFFF.

DarkBlue

取得純色填滿色彩,其十六進位值為 #FF00008BGets the solid fill color that has a hexadecimal value of #FF00008B.

DarkCyan

取得純色填滿色彩,其十六進位值為 #FF008B8BGets the solid fill color that has a hexadecimal value of #FF008B8B.

DarkGoldenrod

取得純色填滿色彩,其十六進位值為 #FFB8860BGets the solid fill color that has a hexadecimal value of #FFB8860B.

DarkGray

取得純色填滿色彩,其十六進位值為 #FFA9A9A9Gets the solid fill color that has a hexadecimal value of #FFA9A9A9.

DarkGreen

取得純色填滿色彩,其十六進位值為 #FF006400Gets the solid fill color that has a hexadecimal value of #FF006400.

DarkKhaki

取得純色填滿色彩,其十六進位值為 #FFBDB76BGets the solid fill color that has a hexadecimal value of #FFBDB76B.

DarkMagenta

取得純色填滿色彩,其十六進位值為 #FF8B008BGets the solid fill color that has a hexadecimal value of #FF8B008B.

DarkOliveGreen

取得純色填滿色彩,其十六進位值為 #FF556B2FGets the solid fill color that has a hexadecimal value of #FF556B2F.

DarkOrange

取得純色填滿色彩,其十六進位值為 #FFFF8C00Gets the solid fill color that has a hexadecimal value of #FFFF8C00.

DarkOrchid

取得純色填滿色彩,其十六進位值為 #FF9932CCGets the solid fill color that has a hexadecimal value of #FF9932CC.

DarkRed

取得純色填滿色彩,其十六進位值為 #FF8B0000Gets the solid fill color that has a hexadecimal value of #FF8B0000.

DarkSalmon

取得純色填滿色彩,其十六進位值為 #FFE9967AGets the solid fill color that has a hexadecimal value of #FFE9967A.

DarkSeaGreen

取得純色填滿色彩,其十六進位值為 #FF8FBC8FGets the solid fill color that has a hexadecimal value of #FF8FBC8F.

DarkSlateBlue

取得純色填滿色彩,其十六進位值為 #FF483D8BGets the solid fill color that has a hexadecimal value of #FF483D8B.

DarkSlateGray

取得純色填滿色彩,其十六進位值為 #FF2F4F4FGets the solid fill color that has a hexadecimal value of #FF2F4F4F.

DarkTurquoise

取得純色填滿色彩,其十六進位值為 #FF00CED1Gets the solid fill color that has a hexadecimal value of #FF00CED1.

DarkViolet

取得純色填滿色彩,其十六進位值為 #FF9400D3Gets the solid fill color that has a hexadecimal value of #FF9400D3.

DeepPink

取得純色填滿色彩,其十六進位值為 #FFFF1493Gets the solid fill color that has a hexadecimal value of #FFFF1493.

DeepSkyBlue

取得純色填滿色彩,其十六進位值為 #FF00BFFFGets the solid fill color that has a hexadecimal value of #FF00BFFF.

DimGray

取得純色填滿色彩,其十六進位值為 #FF696969Gets the solid fill color that has a hexadecimal value of #FF696969.

DodgerBlue

取得純色填滿色彩,其十六進位值為 #FF1E90FFGets the solid fill color that has a hexadecimal value of #FF1E90FF.

Firebrick

取得純色填滿色彩,其十六進位值為 #FFB22222Gets the solid fill color that has a hexadecimal value of #FFB22222.

FloralWhite

取得純色填滿色彩,其十六進位值為 #FFFFFAF0Gets the solid fill color that has a hexadecimal value of #FFFFFAF0.

ForestGreen

取得純色填滿色彩,其十六進位值為 #FF228B22Gets the solid fill color that has a hexadecimal value of #FF228B22.

Fuchsia

取得純色填滿色彩,其十六進位值為 #FFFF00FFGets the solid fill color that has a hexadecimal value of #FFFF00FF.

Gainsboro

取得純色填滿色彩,其十六進位值為 #FFDCDCDCGets the solid fill color that has a hexadecimal value of #FFDCDCDC.

GhostWhite

取得純色填滿色彩,其十六進位值為 #FFF8F8FFGets the solid fill color that has a hexadecimal value of #FFF8F8FF.

Gold

取得純色填滿色彩,其十六進位值為 #FFFFD700Gets the solid fill color that has a hexadecimal value of #FFFFD700.

Goldenrod

取得純色填滿色彩,其十六進位值為 #FFDAA520Gets the solid fill color that has a hexadecimal value of #FFDAA520.

Gray

取得純色填滿色彩,其十六進位值為 #FF808080Gets the solid fill color that has a hexadecimal value of #FF808080.

Green

取得純色填滿色彩,其十六進位值為 #FF008000Gets the solid fill color that has a hexadecimal value of #FF008000.

GreenYellow

取得純色填滿色彩,其十六進位值為 #FFADFF2FGets the solid fill color that has a hexadecimal value of #FFADFF2F.

Honeydew

取得純色填滿色彩,其十六進位值為 #FFF0FFF0Gets the solid fill color that has a hexadecimal value of #FFF0FFF0.

HotPink

取得純色填滿色彩,其十六進位值為 #FFFF69B4Gets the solid fill color that has a hexadecimal value of #FFFF69B4.

IndianRed

取得純色填滿色彩,其十六進位值為 #FFCD5C5CGets the solid fill color that has a hexadecimal value of #FFCD5C5C.

Indigo

取得純色填滿色彩,其十六進位值為 #FF4B0082Gets the solid fill color that has a hexadecimal value of #FF4B0082.

Ivory

取得純色填滿色彩,其十六進位值為 #FFFFFFF0Gets the solid fill color that has a hexadecimal value of #FFFFFFF0.

Khaki

取得純色填滿色彩,其十六進位值為 #FFF0E68CGets the solid fill color that has a hexadecimal value of #FFF0E68C.

Lavender

取得純色填滿色彩,其十六進位值為 #FFE6E6FAGets the solid fill color that has a hexadecimal value of #FFE6E6FA.

LavenderBlush

取得純色填滿色彩,其十六進位值為 #FFFFF0F5Gets the solid fill color that has a hexadecimal value of #FFFFF0F5.

LawnGreen

取得純色填滿色彩,其十六進位值為 #FF7CFC00Gets the solid fill color that has a hexadecimal value of #FF7CFC00.

LemonChiffon

取得純色填滿色彩,其十六進位值為 #FFFFFACDGets the solid fill color that has a hexadecimal value of #FFFFFACD.

LightBlue

取得純色填滿色彩,其十六進位值為 #FFADD8E6Gets the solid fill color that has a hexadecimal value of #FFADD8E6.

LightCoral

取得純色填滿色彩,其十六進位值為 #FFF08080Gets the solid fill color that has a hexadecimal value of #FFF08080.

LightCyan

取得純色填滿色彩,其十六進位值為 #FFE0FFFFGets the solid fill color that has a hexadecimal value of #FFE0FFFF.

LightGoldenrodYellow

取得純色填滿色彩,其十六進位值為 #FFFAFAD2Gets the solid fill color that has a hexadecimal value of #FFFAFAD2.

LightGray

取得純色填滿色彩,其十六進位值為 #FFD3D3D3Gets the solid fill color that has a hexadecimal value of #FFD3D3D3.

LightGreen

取得純色填滿色彩,其十六進位值為 #FF90EE90Gets the solid fill color that has a hexadecimal value of #FF90EE90.

LightPink

取得純色填滿色彩,其十六進位值為 #FFFFB6C1Gets the solid fill color that has a hexadecimal value of #FFFFB6C1.

LightSalmon

取得純色填滿色彩,其十六進位值為 #FFFFA07AGets the solid fill color that has a hexadecimal value of #FFFFA07A.

LightSeaGreen

取得純色填滿色彩,其十六進位值為 #FF20B2AAGets the solid fill color that has a hexadecimal value of #FF20B2AA.

LightSkyBlue

取得純色填滿色彩,其十六進位值為 #FF87CEFAGets the solid fill color that has a hexadecimal value of #FF87CEFA.

LightSlateGray

取得純色填滿色彩,其十六進位值為 #FF778899Gets the solid fill color that has a hexadecimal value of #FF778899.

LightSteelBlue

取得純色填滿色彩,其十六進位值為 #FFB0C4DEGets the solid fill color that has a hexadecimal value of #FFB0C4DE.

LightYellow

取得純色填滿色彩,其十六進位值為 #FFFFFFE0Gets the solid fill color that has a hexadecimal value of #FFFFFFE0.

Lime

取得純色填滿色彩,其十六進位值為 #FF00FF00Gets the solid fill color that has a hexadecimal value of #FF00FF00.

LimeGreen

取得純色填滿色彩,其十六進位值為 #FF32CD32Gets the solid fill color that has a hexadecimal value of #FF32CD32.

Linen

取得純色填滿色彩,其十六進位值為 #FFFAF0E6Gets the solid fill color that has a hexadecimal value of #FFFAF0E6.

Magenta

取得純色填滿色彩,其十六進位值為 #FFFF00FFGets the solid fill color that has a hexadecimal value of #FFFF00FF.

Maroon

取得純色填滿色彩,其十六進位值為 #FF800000Gets the solid fill color that has a hexadecimal value of #FF800000.

MediumAquamarine

取得純色填滿色彩,其十六進位值為 #FF66CDAAGets the solid fill color that has a hexadecimal value of #FF66CDAA.

MediumBlue

取得純色填滿色彩,其十六進位值為 #FF0000CDGets the solid fill color that has a hexadecimal value of #FF0000CD.

MediumOrchid

取得純色填滿色彩,其十六進位值為 #FFBA55D3Gets the solid fill color that has a hexadecimal value of #FFBA55D3.

MediumPurple

取得純色填滿色彩,其十六進位值為 #FF9370DBGets the solid fill color that has a hexadecimal value of #FF9370DB.

MediumSeaGreen

取得純色填滿色彩,其十六進位值為 #FF3CB371Gets the solid fill color that has a hexadecimal value of #FF3CB371.

MediumSlateBlue

取得純色填滿色彩,其十六進位值為 #FF7B68EEGets the solid fill color that has a hexadecimal value of #FF7B68EE.

MediumSpringGreen

取得純色填滿色彩,其十六進位值為 #FF00FA9AGets the solid fill color that has a hexadecimal value of #FF00FA9A.

MediumTurquoise

取得純色填滿色彩,其十六進位值為 #FF48D1CCGets the solid fill color that has a hexadecimal value of #FF48D1CC.

MediumVioletRed

取得純色填滿色彩,其十六進位值為 #FFC71585Gets the solid fill color that has a hexadecimal value of #FFC71585.

MidnightBlue

取得純色填滿色彩,其十六進位值為 #FF191970Gets the solid fill color that has a hexadecimal value of #FF191970.

MintCream

取得純色填滿色彩,其十六進位值為 #FFF5FFFAGets the solid fill color that has a hexadecimal value of #FFF5FFFA.

MistyRose

取得純色填滿色彩,其十六進位值為 #FFFFE4E1Gets the solid fill color that has a hexadecimal value of #FFFFE4E1.

Moccasin

取得純色填滿色彩,其十六進位值為 #FFFFE4B5Gets the solid fill color that has a hexadecimal value of #FFFFE4B5.

NavajoWhite

取得純色填滿色彩,其十六進位值為 #FFFFDEADGets the solid fill color that has a hexadecimal value of #FFFFDEAD.

Navy

取得純色填滿色彩,其十六進位值為 #FF000080Gets the solid fill color that has a hexadecimal value of #FF000080.

OldLace

取得純色填滿色彩,其十六進位值為 #FFFDF5E6Gets the solid fill color that has a hexadecimal value of #FFFDF5E6.

Olive

取得純色填滿色彩,其十六進位值為 #FF808000Gets the solid fill color that has a hexadecimal value of #FF808000.

OliveDrab

取得純色填滿色彩,其十六進位值為 #FF6B8E23Gets the solid fill color that has a hexadecimal value of #FF6B8E23.

Orange

取得純色填滿色彩,其十六進位值為 #FFFFA500Gets the solid fill color that has a hexadecimal value of #FFFFA500.

OrangeRed

取得純色填滿色彩,其十六進位值為 #FFFF4500Gets the solid fill color that has a hexadecimal value of #FFFF4500.

Orchid

取得純色填滿色彩,其十六進位值為 #FFDA70D6Gets the solid fill color that has a hexadecimal value of #FFDA70D6.

PaleGoldenrod

取得純色填滿色彩,其十六進位值為 #FFEEE8AAGets the solid fill color that has a hexadecimal value of #FFEEE8AA.

PaleGreen

取得純色填滿色彩,其十六進位值為 #FF98FB98Gets the solid fill color that has a hexadecimal value of #FF98FB98.

PaleTurquoise

取得純色填滿色彩,其十六進位值為 #FFAFEEEEGets the solid fill color that has a hexadecimal value of #FFAFEEEE.

PaleVioletRed

取得純色填滿色彩,其十六進位值為 #FFDB7093Gets the solid fill color that has a hexadecimal value of #FFDB7093.

PapayaWhip

取得純色填滿色彩,其十六進位值為 #FFFFEFD5Gets the solid fill color that has a hexadecimal value of #FFFFEFD5.

PeachPuff

取得純色填滿色彩,其十六進位值為 #FFFFDAB9Gets the solid fill color that has a hexadecimal value of #FFFFDAB9.

Peru

取得純色填滿色彩,其十六進位值為 #FFCD853FGets the solid fill color that has a hexadecimal value of #FFCD853F.

Pink

取得純色填滿色彩,其十六進位值為 #FFFFC0CBGets the solid fill color that has a hexadecimal value of #FFFFC0CB.

Plum

取得純色填滿色彩,其十六進位值為 #FFDDA0DDGets the solid fill color that has a hexadecimal value of #FFDDA0DD.

PowderBlue

取得純色填滿色彩,其十六進位值為 #FFB0E0E6Gets the solid fill color that has a hexadecimal value of #FFB0E0E6.

Purple

取得純色填滿色彩,其十六進位值為 #FF800080Gets the solid fill color that has a hexadecimal value of #FF800080.

Red

取得純色填滿色彩,其十六進位值為 #FFFF0000Gets the solid fill color that has a hexadecimal value of #FFFF0000.

RosyBrown

取得純色填滿色彩,其十六進位值為 #FFBC8F8FGets the solid fill color that has a hexadecimal value of #FFBC8F8F.

RoyalBlue

取得純色填滿色彩,其十六進位值為 #FF4169E1Gets the solid fill color that has a hexadecimal value of #FF4169E1.

SaddleBrown

取得純色填滿色彩,其十六進位值為 #FF8B4513Gets the solid fill color that has a hexadecimal value of #FF8B4513.

Salmon

取得純色填滿色彩,其十六進位值為 #FFFA8072Gets the solid fill color that has a hexadecimal value of #FFFA8072.

SandyBrown

取得純色填滿色彩,其十六進位值為 #FFF4A460Gets the solid fill color that has a hexadecimal value of #FFF4A460.

SeaGreen

取得純色填滿色彩,其十六進位值為 #FF2E8B57Gets the solid fill color that has a hexadecimal value of #FF2E8B57.

SeaShell

取得純色填滿色彩,其十六進位值為 #FFFFF5EEGets the solid fill color that has a hexadecimal value of #FFFFF5EE.

Sienna

取得純色填滿色彩,其十六進位值為 #FFA0522DGets the solid fill color that has a hexadecimal value of #FFA0522D.

Silver

取得純色填滿色彩,其十六進位值為 #FFC0C0C0Gets the solid fill color that has a hexadecimal value of #FFC0C0C0.

SkyBlue

取得純色填滿色彩,其十六進位值為 #FF87CEEBGets the solid fill color that has a hexadecimal value of #FF87CEEB.

SlateBlue

取得純色填滿色彩,其十六進位值為 #FF6A5ACDGets the solid fill color that has a hexadecimal value of #FF6A5ACD.

SlateGray

取得純色填滿色彩,其十六進位值為 #FF708090Gets the solid fill color that has a hexadecimal value of #FF708090.

Snow

取得純色填滿色彩,其十六進位值為 #FFFFFAFAGets the solid fill color that has a hexadecimal value of #FFFFFAFA.

SpringGreen

取得純色填滿色彩,其十六進位值為 #FF00FF7FGets the solid fill color that has a hexadecimal value of #FF00FF7F.

SteelBlue

取得純色填滿色彩,其十六進位值為 #FF4682B4Gets the solid fill color that has a hexadecimal value of #FF4682B4.

Tan

取得純色填滿色彩,其十六進位值為 #FFD2B48CGets the solid fill color that has a hexadecimal value of #FFD2B48C.

Teal

取得純色填滿色彩,其十六進位值為 #FF008080Gets the solid fill color that has a hexadecimal value of #FF008080.

Thistle

取得純色填滿色彩,其十六進位值為 #FFD8BFD8Gets the solid fill color that has a hexadecimal value of #FFD8BFD8.

Tomato

取得純色填滿色彩,其十六進位值為 #FFFF6347Gets the solid fill color that has a hexadecimal value of #FFFF6347.

Transparent

取得純色填滿色彩,其十六進位值為 #00FFFFFFGets the solid fill color that has a hexadecimal value of #00FFFFFF.

Turquoise

取得純色填滿色彩,其十六進位值為 #FF40E0D0Gets the solid fill color that has a hexadecimal value of #FF40E0D0.

Violet

取得純色填滿色彩,其十六進位值為 #FFEE82EEGets the solid fill color that has a hexadecimal value of #FFEE82EE.

Wheat

取得純色填滿色彩,其十六進位值為 #FFF5DEB3Gets the solid fill color that has a hexadecimal value of #FFF5DEB3.

White

取得純色填滿色彩,其十六進位值為 #FFFFFFFFGets the solid fill color that has a hexadecimal value of #FFFFFFFF.

WhiteSmoke

取得純色填滿色彩,其十六進位值為 #FFF5F5F5Gets the solid fill color that has a hexadecimal value of #FFF5F5F5.

Yellow

取得純色填滿色彩,其十六進位值為 #FFFFFF00Gets the solid fill color that has a hexadecimal value of #FFFFFF00.

YellowGreen

取得純色填滿色彩,其十六進位值為 #FF9ACD32Gets 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()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱