Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ColorProperty Enumeration

Identifies the color properties of a visual style element.

Namespace:  System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum ColorProperty

Member nameDescription
BorderColorThe border color of an element with a filled-border background.
FillColorThe fill color of an element with a filled-border background.
TextColorThe text color.
EdgeLightColorThe light color for edges.
EdgeHighlightColorThe highlight color for edges.
EdgeShadowColorThe shadow color for edges.
EdgeDarkShadowColorThe dark shadow color for edges.
EdgeFillColorThe fill color for edges.
TransparentColorThe color of pixels that are treated as transparent.
GradientColor1The first color in a gradient.
GradientColor2The second color in a gradient.
GradientColor3The third color in a gradient.
GradientColor4The fourth color in a gradient.
GradientColor5The fifth color in a gradient.
ShadowColorThe color of the shadow.
GlowColorThe glow color.
TextBorderColorThe color of the text border.
TextShadowColorThe color of the text shadow.
GlyphTextColorThe color that a font-based glyph is drawn with.
GlyphTransparentColorThe color of pixels in a glyph that are treated as transparent.
FillColorHintA recommended companion color for the fill color of the visual style.
BorderColorHintA recommended companion color for the border color of the visual style.
AccentColorHintA recommended companion color for the accent color of the visual style.

The ColorProperty enumeration represents a set of color properties that describe visual style elements. The ColorProperty values are used as an argument in the VisualStyleRenderer.GetColor method to specify which property value to retrieve for the element that the VisualStyleRenderer currently represents.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft