In This Article

WindowsColorScheme Class

Provides a Windows color scheme.

public class WindowsColorScheme : DisposableObject, IDisposable
Inheritance:
Object MarshalByRefObject DisposableObject Object
Implements:
IDisposable

Constructors

WindowsColorScheme(String, WindowsColorSchemeType, Color)

Creates an instance of the WindowsColorScheme class.

public WindowsColorScheme(string key, WindowsColorSchemeType baseColorSchemeType, Color tintColor)
Parameter Type Description
key String

The key of the color scheme.

baseColorSchemeType WindowsColorSchemeType

The base WindowsColorSchemeType from which colors should be initialized.

tintColor Color

A Color that if is not Color.Empty will tint the color scheme to be based on the color.

Properties

BarButtonCheckedBack

Gets or sets the background color of a checked bar button.

public virtual Color BarButtonCheckedBack { get; set; }

Property Value

Color:

A Color object specifying the background color of a checked bar button.

BarButtonCheckedBackGradientBegin

Gets or sets the begin gradient color of a checked bar button background.

public virtual Color BarButtonCheckedBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a checked bar button background.

BarButtonCheckedBackGradientEnd

Gets or sets the end gradient color of a checked bar button background.

public virtual Color BarButtonCheckedBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a checked bar button background.

BarButtonCheckedBackGradientMiddle

Gets or sets the middle gradient color of a checked bar button background.

public virtual Color BarButtonCheckedBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a checked bar button background.

BarButtonCheckedBorder

Gets or sets the border color of a checked bar button.

public virtual Color BarButtonCheckedBorder { get; set; }

Property Value

Color:

A Color object specifying the border color of a checked bar button.

BarButtonHotBack

Gets or sets the background color of a hot bar button.

public virtual Color BarButtonHotBack { get; set; }

Property Value

Color:

A Color object specifying the background color of a hot bar button.

BarButtonHotBackGradientBegin

Gets or sets the begin gradient color of a hot bar button background.

public virtual Color BarButtonHotBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a hot bar button background.

BarButtonHotBackGradientEnd

Gets or sets the end gradient color of a hot bar button background.

public virtual Color BarButtonHotBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a hot bar button background.

BarButtonHotBackGradientMiddle

Gets or sets the middle gradient color of a hot bar button background.

public virtual Color BarButtonHotBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a hot bar button background.

BarButtonHotBorder

Gets or sets the border color of a hot bar button.

public virtual Color BarButtonHotBorder { get; set; }

Property Value

Color:

A Color object specifying the border color of a hot bar button.

BarButtonPressedBack

Gets or sets the background color of a pressed bar button.

public virtual Color BarButtonPressedBack { get; set; }

Property Value

Color:

A Color object specifying the background color of a pressed bar button.

BarButtonPressedBackGradientBegin

Gets or sets the begin gradient color of a pressed bar button background.

public virtual Color BarButtonPressedBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a pressed bar button background.

BarButtonPressedBackGradientEnd

Gets or sets the end gradient color of a pressed bar button background.

public virtual Color BarButtonPressedBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a pressed bar button background.

BarButtonPressedBackGradientMiddle

Gets or sets the middle gradient color of a pressed bar button background.

public virtual Color BarButtonPressedBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a pressed bar button background.

BarButtonPressedBorder

Gets or sets the border color of a pressed bar button.

public virtual Color BarButtonPressedBorder { get; set; }

Property Value

Color:

A Color object specifying the border color of a pressed bar button.

BarButtonText

Gets or sets the color of bar button text.

public virtual Color BarButtonText { get; set; }

Property Value

Color:

A Color object specifying the color of bar button text.

BarButtonTextAlternate

Gets or sets the color of alternate bar button text.

public virtual Color BarButtonTextAlternate { get; set; }

Property Value

Color:

A Color object specifying the color of alternate bar button text.

BarButtonTextDisabled

Gets or sets the color of disabled bar button text.

public virtual Color BarButtonTextDisabled { get; set; }

Property Value

Color:

A Color object specifying the color of disabled bar button text.

BarLabelBack

Gets or sets the background color of a bar label.

public virtual Color BarLabelBack { get; set; }

Property Value

Color:

A Color object specifying the background color of a bar label.

BaseColorSchemeType

Gets a WindowsColorSchemeType that indicates the base color scheme type represented by this scheme.

public WindowsColorSchemeType BaseColorSchemeType { get; }

Property Value

WindowsColorSchemeType:

A WindowsColorSchemeType that indicates the base color scheme type represented by this scheme.

ColorSchemeType

Gets a WindowsColorSchemeType that indicates the resolved color scheme type represented by this scheme.

public WindowsColorSchemeType ColorSchemeType { get; }

Property Value

WindowsColorSchemeType:

A WindowsColorSchemeType that indicates the resolved color scheme type represented by this scheme.

DefaultColorSchemeType

Gets a WindowsColorSchemeType that indicates the default color scheme.

public static WindowsColorSchemeType DefaultColorSchemeType { get; }

Property Value

WindowsColorSchemeType:

A WindowsColorSchemeType that indicates the default color scheme.

FormBackGradientBegin

Gets or sets the begin gradient color of a form background.

public virtual Color FormBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a form background.

FormBackGradientEnd

Gets or sets the end gradient color of a form background.

public virtual Color FormBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a form background.

Key

Gets the key that identifies the color scheme.

public string Key { get; }

Property Value

String:

The key that identifies the color scheme.

MenuBack

Gets or sets the background color of a menu.

public virtual Color MenuBack { get; set; }

Property Value

Color:

A Color object specifying the background color of a menu.

MenuBorder

Gets or sets the border color of a menu.

public virtual Color MenuBorder { get; set; }

Property Value

Color:

A Color object specifying the border color of a menu.

MenuIconColumnBackGradientBegin

Gets or sets the begin gradient color of a menu icon column background.

public virtual Color MenuIconColumnBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a menu icon column background.

MenuIconColumnBackGradientEnd

Gets or sets the end gradient color of a menu icon column background.

public virtual Color MenuIconColumnBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a menu icon column background.

MenuIconColumnBackGradientMiddle

Gets or sets the middle gradient color of a menu icon column background.

public virtual Color MenuIconColumnBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a menu icon column background.

MetroLight

Gets the WindowsColorScheme that represents the Metro Light color scheme.

public static WindowsColorScheme MetroLight { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Metro Light color scheme.

NavigationBarHeaderBackGradientBegin

Gets or sets the begin gradient color of a navigationbar header background.

public virtual Color NavigationBarHeaderBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a navigationbar header background.

NavigationBarHeaderBackGradientEnd

Gets or sets the end gradient color of a navigationbar header background.

public virtual Color NavigationBarHeaderBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a navigationbar header background.

NavigationBarHeaderText

Gets or sets the color of navigationbar header text.

public virtual Color NavigationBarHeaderText { get; set; }

Property Value

Color:

A Color object specifying the color of navigationbar header text.

NavigationPaneButtonBackGradientBegin

Gets or sets the begin gradient color of a navigationbar pane button background.

public virtual Color NavigationPaneButtonBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a navigationbar pane button background.

NavigationPaneButtonBackGradientEnd

Gets or sets the end gradient color of a navigationbar pane button background.

public virtual Color NavigationPaneButtonBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a navigationbar pane button background.

NavigationPaneButtonBackGradientMid1

Gets or sets the middle gradient color of a navigationbar pane button background.

public virtual Color NavigationPaneButtonBackGradientMid1 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a navigationbar pane button background.

NavigationPaneButtonBackGradientMid2

Gets or sets the middle gradient color of a navigationbar pane button background.

public virtual Color NavigationPaneButtonBackGradientMid2 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a navigationbar pane button background.

NavigationPaneButtonHotBackGradientBegin

Gets or sets the begin gradient color of a hot navigationbar pane button background.

public virtual Color NavigationPaneButtonHotBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a hot navigationbar pane button background.

NavigationPaneButtonHotBackGradientEnd

Gets or sets the end gradient color of a hot navigationbar pane button background.

public virtual Color NavigationPaneButtonHotBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a hot navigationbar pane button background.

NavigationPaneButtonHotBackGradientMid1

Gets or sets the middle gradient color of a navigationbar pane button background.

public virtual Color NavigationPaneButtonHotBackGradientMid1 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a hot navigationbar pane button background.

NavigationPaneButtonHotBackGradientMid2

Gets or sets the middle gradient color of a navigationbar pane button background.

public virtual Color NavigationPaneButtonHotBackGradientMid2 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a hot navigationbar pane button background.

NavigationPaneButtonHotPressedBackGradientBegin

Gets or sets the begin gradient color of a hot/pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonHotPressedBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a hot/pressed navigationbar pane button background.

NavigationPaneButtonHotPressedBackGradientEnd

Gets or sets the end gradient color of a hot/pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonHotPressedBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a hot/pressed navigationbar pane button background.

NavigationPaneButtonHotPressedBackGradientMid1

Gets or sets the middle gradient color of a hot/pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonHotPressedBackGradientMid1 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a hot/pressed navigationbar pane button background.

NavigationPaneButtonHotPressedBackGradientMid2

Gets or sets the middle gradient color of a hot/pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonHotPressedBackGradientMid2 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a hot/pressed navigationbar pane button background.

NavigationPaneButtonPressedBackGradientBegin

Gets or sets the begin gradient color of a pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonPressedBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a pressed navigationbar pane button background.

NavigationPaneButtonPressedBackGradientEnd

Gets or sets the end gradient color of a pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonPressedBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a pressed navigationbar pane button background.

NavigationPaneButtonPressedBackGradientMid1

Gets or sets the middle gradient color of a pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonPressedBackGradientMid1 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a pressed navigationbar pane button background.

NavigationPaneButtonPressedBackGradientMid2

Gets or sets the middle gradient color of a pressed navigationbar pane button background.

public virtual Color NavigationPaneButtonPressedBackGradientMid2 { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a pressed navigationbar pane button background.

Office2007Black

Gets the WindowsColorScheme that represents the Office 2007 black color scheme.

public static WindowsColorScheme Office2007Black { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Office 2007 black color scheme.

Office2007Blue

Gets the WindowsColorScheme that represents the Office 2007 blue color scheme.

public static WindowsColorScheme Office2007Blue { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Office 2007 blue color scheme.

Office2007Silver

Gets the WindowsColorScheme that represents the Office 2007 silver color scheme.

public static WindowsColorScheme Office2007Silver { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Office 2007 silver color scheme.

ToolBarBackGradientBegin

Gets or sets the begin gradient color of a toolbar background.

public virtual Color ToolBarBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a toolbar background.

ToolBarBackGradientEnd

Gets or sets the end gradient color of a toolbar background.

public virtual Color ToolBarBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a toolbar background.

ToolBarBackGradientMiddle

Gets or sets the middle gradient color of a toolbar background.

public virtual Color ToolBarBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a toolbar background.

ToolBarFloatingTitleBack

Gets or sets the background color of a floating toolbar title bar.

public virtual Color ToolBarFloatingTitleBack { get; set; }

Property Value

Color:

A Color object specifying the background color of a floating toolbar title bar.

ToolBarFloatingTitleText

Gets or sets the text color of a floating toolbar title bar.

public virtual Color ToolBarFloatingTitleText { get; set; }

Property Value

Color:

A Color object specifying the text color of a floating toolbar title bar.

ToolBarGripperDark

Gets or sets the dark color of a toolbar gripper.

public virtual Color ToolBarGripperDark { get; set; }

Property Value

Color:

A Color object specifying the dark color of a toolbar gripper.

ToolBarGripperLight

Gets or sets the light color of a toolbar gripper.

public virtual Color ToolBarGripperLight { get; set; }

Property Value

Color:

A Color object specifying the light color of a toolbar gripper.

ToolBarOptionsBackGradientBegin

Gets or sets the begin gradient color of a toolbar options button background.

public virtual Color ToolBarOptionsBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a toolbar options button background.

ToolBarOptionsBackGradientEnd

Gets or sets the end gradient color of a toolbar options button background.

public virtual Color ToolBarOptionsBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a toolbar options button background.

ToolBarOptionsBackGradientMiddle

Gets or sets the middle gradient color of a toolbar options button background.

public virtual Color ToolBarOptionsBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a toolbar options button background.

ToolBarOptionsHotBackGradientBegin

Gets or sets the begin gradient color of a hot toolbar options button background.

public virtual Color ToolBarOptionsHotBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a hot toolbar options button background.

ToolBarOptionsHotBackGradientEnd

Gets or sets the end gradient color of a hot toolbar options button background.

public virtual Color ToolBarOptionsHotBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a hot toolbar options button background.

ToolBarOptionsHotBackGradientMiddle

Gets or sets the middle gradient color of a hot toolbar options button background.

public virtual Color ToolBarOptionsHotBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a hot toolbar options button background.

ToolBarOptionsPressedBackGradientBegin

Gets or sets the begin gradient color of a pressed toolbar options button background.

public virtual Color ToolBarOptionsPressedBackGradientBegin { get; set; }

Property Value

Color:

A Color object specifying the begin gradient color of a pressed toolbar options button background.

ToolBarOptionsPressedBackGradientEnd

Gets or sets the end gradient color of a pressed toolbar options button background.

public virtual Color ToolBarOptionsPressedBackGradientEnd { get; set; }

Property Value

Color:

A Color object specifying the end gradient color of a pressed toolbar options button background.

ToolBarOptionsPressedBackGradientMiddle

Gets or sets the middle gradient color of a pressed toolbar options button background.

public virtual Color ToolBarOptionsPressedBackGradientMiddle { get; set; }

Property Value

Color:

A Color object specifying the middle gradient color of a pressed toolbar options button background.

ToolBarSeparatorDark

Gets or sets the dark color of a toolbar separator.

public virtual Color ToolBarSeparatorDark { get; set; }

Property Value

Color:

A Color object specifying the dark color of a toolbar separator.

ToolBarSeparatorLight

Gets or sets the light color of a toolbar separator.

public virtual Color ToolBarSeparatorLight { get; set; }

Property Value

Color:

A Color object specifying the light color of a toolbar separator.

ToolBarShadow

Gets or sets the color of a toolbar shadow.

public virtual Color ToolBarShadow { get; set; }

Property Value

Color:

A Color object specifying the color of a toolbar shadow.

VisualStudio2005

Gets the WindowsColorScheme that represents the Visual Studio 2005 color scheme.

public static WindowsColorScheme VisualStudio2005 { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Visual Studio 2005 color scheme.

WindowsClassic

Gets the WindowsColorScheme that represents the Windows Classic color scheme.

public static WindowsColorScheme WindowsClassic { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Windows Classic color scheme.

WindowsDefault

Gets the WindowsColorScheme that represents the default Windows color scheme.

public static WindowsColorScheme WindowsDefault { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the default Windows color scheme.

WindowsXPBlue

Gets the WindowsColorScheme that represents the Windows XP blue color scheme.

public static WindowsColorScheme WindowsXPBlue { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Windows XP blue color scheme.

WindowsXPOliveGreen

Gets the WindowsColorScheme that represents the Windows XP olive green color scheme.

public static WindowsColorScheme WindowsXPOliveGreen { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Windows XP olive green color scheme.

WindowsXPRoyale

Gets the WindowsColorScheme that represents the Windows XP royale color scheme.

public static WindowsColorScheme WindowsXPRoyale { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Windows XP royale color scheme.

WindowsXPSilver

Gets the WindowsColorScheme that represents the Windows XP silver color scheme.

public static WindowsColorScheme WindowsXPSilver { get; }

Property Value

WindowsColorScheme:

The WindowsColorScheme that represents the Windows XP silver color scheme.

Methods

Dispose(Boolean)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

GetColorScheme(WindowsColorSchemeType)

Gets the WindowsColorScheme that represents the specified WindowsColorSchemeType.

public static WindowsColorScheme GetColorScheme(WindowsColorSchemeType colorSchemeType)
Parameter Type Description
colorSchemeType WindowsColorSchemeType

The WindowsColorSchemeType to return.

Returns

WindowsColorScheme:

The WindowsColorScheme that represents the specified WindowsColorSchemeType.

Initialize()

Re-initializes all the colors.

public void Initialize()

UpdateColors()

Updates the colors.

protected virtual void UpdateColors()

Remarks

This method is called when the color scheme is first created and when system color preferences change.

Inherited Members