Brushes Class

 

Brushes for all the standard colors. This class cannot be inherited.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

System.Object
  System.Drawing.Brushes

public sealed class Brushes

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAliceBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticAntiqueWhite

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticAqua

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticAquamarine

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticAzure

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBeige

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBisque

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBlack

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBlanchedAlmond

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBlueViolet

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBrown

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticBurlyWood

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticCadetBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticChartreuse

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticChocolate

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticCoral

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticCornflowerBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticCornsilk

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticCrimson

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticCyan

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkCyan

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkGoldenrod

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkKhaki

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkMagenta

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkOliveGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkOrange

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkOrchid

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkRed

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkSalmon

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkSeaGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkSlateBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkSlateGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkTurquoise

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDarkViolet

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDeepPink

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDeepSkyBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDimGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticDodgerBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticFirebrick

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticFloralWhite

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticForestGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticFuchsia

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGainsboro

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGhostWhite

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGold

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGoldenrod

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticGreenYellow

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticHoneydew

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticHotPink

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticIndianRed

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticIndigo

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticIvory

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticKhaki

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLavender

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLavenderBlush

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLawnGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLemonChiffon

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightCoral

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightCyan

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightGoldenrodYellow

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightPink

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightSalmon

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightSeaGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightSkyBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightSlateGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightSteelBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLightYellow

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLime

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLimeGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticLinen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMagenta

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMaroon

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumAquamarine

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumOrchid

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumPurple

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumSeaGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumSlateBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumSpringGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumTurquoise

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMediumVioletRed

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMidnightBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMintCream

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMistyRose

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticMoccasin

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticNavajoWhite

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticNavy

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticOldLace

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticOlive

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticOliveDrab

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticOrange

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticOrangeRed

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticOrchid

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPaleGoldenrod

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPaleGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPaleTurquoise

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPaleVioletRed

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPapayaWhip

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPeachPuff

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPeru

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPink

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPlum

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPowderBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticPurple

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticRed

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticRosyBrown

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticRoyalBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSaddleBrown

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSalmon

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSandyBrown

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSeaGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSeaShell

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSienna

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSilver

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSkyBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSlateBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSlateGray

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSnow

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSpringGreen

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticSteelBlue

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticTan

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticTeal

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticThistle

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticTomato

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticTransparent

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticTurquoise

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticViolet

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticWheat

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticWhite

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticWhiteSmoke

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticYellow

Gets a system-defined Brush object.

System_CAPS_pubpropertySystem_CAPS_staticYellowGreen

Gets a system-defined Brush object.

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

The Brushes class contains static read-only properties that return a Brush object of the color indicated by the property name. You typically do not have to explicitly dispose of the brush returned by a property in this class, unless it is used to construct a new brush. For more information about the colors represented by the brushes in this class, see Colors by Name.

The following code example demonstrates the how to use a member of the Brushes class to fill a Rectangle. This example should be used with a Windows Form. Paste this code into a form and call this method when handling the form's Paint event, passing e as PaintEventArgs.

private void InstanceRectangleIntersection(PaintEventArgs e)
{

    Rectangle rectangle1 = new Rectangle(50, 50, 200, 100);
    Rectangle rectangle2 = new Rectangle(70, 20, 100, 200);

    e.Graphics.DrawRectangle(Pens.Black, rectangle1);
    e.Graphics.DrawRectangle(Pens.Red, rectangle2);

    if (rectangle1.IntersectsWith(rectangle2))
    {
        rectangle1.Intersect(rectangle2);
        if (!rectangle1.IsEmpty)
        {
            e.Graphics.FillRectangle(Brushes.Green, rectangle1);
        }
    }
}

.NET Framework
Available since 1.1

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: