Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SystemBrushes Class

SystemBrushes Class

Each property of the SystemBrushes class is a SolidBrush that is the color of a Windows display element.

System.Object
  System.Drawing.SystemBrushes

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

[<Sealed>]
type SystemBrushes =  class end

The SystemBrushes type exposes the following members.

  NameDescription
Public propertyStatic memberActiveBorderGets a SolidBrush that is the color of the active window's border.
Public propertyStatic memberActiveCaptionGets a SolidBrush that is the color of the background of the active window's title bar.
Public propertyStatic memberActiveCaptionTextGets a SolidBrush that is the color of the text in the active window's title bar.
Public propertyStatic memberAppWorkspaceGets a SolidBrush that is the color of the application workspace.
Public propertyStatic memberButtonFaceGets a SolidBrush that is the face color of a 3-D element.
Public propertyStatic memberButtonHighlightGets a SolidBrush that is the highlight color of a 3-D element.
Public propertyStatic memberButtonShadowGets a SolidBrush that is the shadow color of a 3-D element.
Public propertyStatic memberControlGets a SolidBrush that is the face color of a 3-D element.
Public propertyStatic memberControlDarkGets a SolidBrush that is the shadow color of a 3-D element.
Public propertyStatic memberControlDarkDarkGets a SolidBrush that is the dark shadow color of a 3-D element.
Public propertyStatic memberControlLightGets a SolidBrush that is the light color of a 3-D element.
Public propertyStatic memberControlLightLightGets a SolidBrush that is the highlight color of a 3-D element.
Public propertyStatic memberControlTextGets a SolidBrush that is the color of text in a 3-D element.
Public propertyStatic memberDesktopGets a SolidBrush that is the color of the desktop.
Public propertyStatic memberGradientActiveCaptionGets a SolidBrush that is the lightest color in the color gradient of an active window's title bar.
Public propertyStatic memberGradientInactiveCaptionGets a SolidBrush that is the lightest color in the color gradient of an inactive window's title bar.
Public propertyStatic memberGrayTextGets a SolidBrush that is the color of dimmed text.
Public propertyStatic memberHighlightGets a SolidBrush that is the color of the background of selected items.
Public propertyStatic memberHighlightTextGets a SolidBrush that is the color of the text of selected items.
Public propertyStatic memberHotTrackGets a SolidBrush that is the color used to designate a hot-tracked item.
Public propertyStatic memberInactiveBorderGets a SolidBrush that is the color of an inactive window's border.
Public propertyStatic memberInactiveCaptionGets a SolidBrush that is the color of the background of an inactive window's title bar.
Public propertyStatic memberInactiveCaptionTextGets a SolidBrush that is the color of the text in an inactive window's title bar.
Public propertyStatic memberInfoGets a SolidBrush that is the color of the background of a ToolTip.
Public propertyStatic memberInfoTextGets a SolidBrush that is the color of the text of a ToolTip.
Public propertyStatic memberMenuGets a SolidBrush that is the color of a menu's background.
Public propertyStatic memberMenuBarGets a SolidBrush that is the color of the background of a menu bar.
Public propertyStatic memberMenuHighlightGets a SolidBrush that is the color used to highlight menu items when the menu appears as a flat menu.
Public propertyStatic memberMenuTextGets a SolidBrush that is the color of a menu's text.
Public propertyStatic memberScrollBarGets a SolidBrush that is the color of the background of a scroll bar.
Public propertyStatic memberWindowGets a SolidBrush that is the color of the background in the client area of a window.
Public propertyStatic memberWindowFrameGets a SolidBrush that is the color of a window frame.
Public propertyStatic memberWindowTextGets a SolidBrush that is the color of the text in the client area of a window.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberFromSystemColorCreates a Brush from the specified Color structure.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The following code example shows how to set a keyboard shortcut using the HotkeyPrefix property. It also demonstrates how to use the FromSystemColor method. To run this example, paste the code into a form, handle the form's Paint event and call the following method, passing e as PaintEventArgs.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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