VisualStyleInformation.ColorScheme Property

 

Gets the color scheme of the current visual style.

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

public static string ColorScheme { get; }

Property Value

Type: System.String

A string that specifies the color scheme of the current visual style if visual styles are enabled; otherwise, an empty string ("").

The Windows XP visual style provides three color schemes. This property returns "NormalColor" if the blue color scheme is active, "HomeStead" if the olive green color scheme is active, and "Metallic" if the silver color scheme is active.

.NET Framework
Available since 2.0
Return to top
Show: