Skip to main content

SystemPens

Namespace: System.Drawing

Assembly: System.Drawing.Managed (4.0.0.0)

Each property of the SystemPens class is a Pen that is the color of a Windows display element and that has a width of 1 pixel.

public class SystemPens

Properties

Static member ActiveBorder

Pen: Gets a Pen that is the color of the active window's border.

Static member ActiveCaption

Pen: Gets a Pen that is the color of the background of the active window's title bar.

Static member ActiveCaptionText

Pen: Gets a Pen that is the color of the text in the active window's title bar.

Static member AppWorkspace

Pen: Gets a Pen that is the color of the application workspace.

Static member ButtonFace

Pen: Gets a Pen that is the face color of a 3-D element.

Static member ButtonHighlight

Pen: Gets a Pen that is the highlight color of a 3-D element.

Static member ButtonShadow

Pen: Gets a Pen that is the shadow color of a 3-D element.

Static member Control

Pen: Gets a Pen that is the face color of a 3-D element.

Static member ControlDark

Pen: Gets a Pen that is the shadow color of a 3-D element.

Static member ControlDarkDark

Pen: Gets a Pen that is the dark shadow color of a 3-D element.

Static member ControlLight

Pen: Gets a Pen that is the light color of a 3-D element.

Static member ControlLightLight

Pen: Gets a Pen that is the highlight color of a 3-D element.

Static member ControlText

Pen: Gets a Pen that is the color of text in a 3-D element.

Static member Desktop

Pen: Gets a Pen that is the color of the Windows desktop.

Static member GradientActiveCaption

Pen: Gets a Pen that is the lightest color in the color gradient of an active window's title bar.

Static member GradientInactiveCaption

Pen: Gets a Pen that is the lightest color in the color gradient of an inactive window's title bar.

Static member GrayText

Pen: Gets a Pen that is the color of dimmed text.

Static member Highlight

Pen: Gets a Pen that is the color of the background of selected items.

Static member HighlightText

Pen: Gets a Pen that is the color of the text of selected items.

Static member HotTrack

Pen: Gets a Pen that is the color used to designate a hot-tracked item.

Static member InactiveBorder

Pen: Gets a Pen is the color of the border of an inactive window.

Static member InactiveCaption

Pen: Gets a Pen that is the color of the title bar caption of an inactive window.

Static member InactiveCaptionText

Pen: Gets a Pen that is the color of the text in an inactive window's title bar.

Static member Info

Pen: Gets a Pen that is the color of the background of a ToolTip.

Static member InfoText

Pen: Gets a Pen that is the color of the text of a ToolTip.

Pen: Gets a Pen that is the color of a menu's background.

Pen: Gets a Pen that is the color of the background of a menu bar.

Pen: Gets a Pen that is the color used to highlight menu items when the menu appears as a flat menu.

Pen: Gets a Pen that is the color of a menu's text.

Static member ScrollBar

Pen: Gets a Pen that is the color of the background of a scroll bar.

Static member Window

Pen: Gets a Pen that is the color of the background in the client area of a window.

Static member WindowFrame

Pen: Gets a Pen that is the color of a window frame.

Static member WindowText

Pen: Gets a Pen that is the color of the text in the client area of a window.

Methods

Static member FromSystemColor(c)

Creates a Pen from the specified Color.

ParameterTypeDescription
cColorThe Color for the new Pen.

Returns: Pen. The Pen this method creates.