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 |
Properties
BarButtonCheckedBack
Gets or sets the background color of a checked bar button.
public virtual Color BarButtonCheckedBack { get; set; }
Property Value
BarButtonCheckedBackGradientBegin
Gets or sets the begin gradient color of a checked bar button background.
public virtual Color BarButtonCheckedBackGradientBegin { get; set; }
Property Value
BarButtonCheckedBackGradientEnd
Gets or sets the end gradient color of a checked bar button background.
public virtual Color BarButtonCheckedBackGradientEnd { get; set; }
Property Value
BarButtonCheckedBackGradientMiddle
Gets or sets the middle gradient color of a checked bar button background.
public virtual Color BarButtonCheckedBackGradientMiddle { get; set; }
Property Value
BarButtonCheckedBorder
Gets or sets the border color of a checked bar button.
public virtual Color BarButtonCheckedBorder { get; set; }
Property Value
BarButtonHotBack
Gets or sets the background color of a hot bar button.
public virtual Color BarButtonHotBack { get; set; }
Property Value
BarButtonHotBackGradientBegin
Gets or sets the begin gradient color of a hot bar button background.
public virtual Color BarButtonHotBackGradientBegin { get; set; }
Property Value
BarButtonHotBackGradientEnd
Gets or sets the end gradient color of a hot bar button background.
public virtual Color BarButtonHotBackGradientEnd { get; set; }
Property Value
BarButtonHotBackGradientMiddle
Gets or sets the middle gradient color of a hot bar button background.
public virtual Color BarButtonHotBackGradientMiddle { get; set; }
Property Value
BarButtonHotBorder
Gets or sets the border color of a hot bar button.
public virtual Color BarButtonHotBorder { get; set; }
Property Value
BarButtonPressedBack
Gets or sets the background color of a pressed bar button.
public virtual Color BarButtonPressedBack { get; set; }
Property Value
BarButtonPressedBackGradientBegin
Gets or sets the begin gradient color of a pressed bar button background.
public virtual Color BarButtonPressedBackGradientBegin { get; set; }
Property Value
BarButtonPressedBackGradientEnd
Gets or sets the end gradient color of a pressed bar button background.
public virtual Color BarButtonPressedBackGradientEnd { get; set; }
Property Value
BarButtonPressedBackGradientMiddle
Gets or sets the middle gradient color of a pressed bar button background.
public virtual Color BarButtonPressedBackGradientMiddle { get; set; }
Property Value
BarButtonPressedBorder
Gets or sets the border color of a pressed bar button.
public virtual Color BarButtonPressedBorder { get; set; }
Property Value
BarButtonText
Gets or sets the color of bar button text.
public virtual Color BarButtonText { get; set; }
Property Value
BarButtonTextAlternate
Gets or sets the color of alternate bar button text.
public virtual Color BarButtonTextAlternate { get; set; }
Property Value
BarButtonTextDisabled
Gets or sets the color of disabled bar button text.
public virtual Color BarButtonTextDisabled { get; set; }
Property Value
BarLabelBack
Gets or sets the background color of a bar label.
public virtual Color BarLabelBack { get; set; }
Property Value
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
FormBackGradientEnd
Gets or sets the end gradient color of a form background.
public virtual Color FormBackGradientEnd { get; set; }
Property Value
Key
Gets 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
MenuBorder
Gets or sets the border color of a menu.
public virtual Color MenuBorder { get; set; }
Property Value
MenuIconColumnBackGradientBegin
Gets or sets the begin gradient color of a menu icon column background.
public virtual Color MenuIconColumnBackGradientBegin { get; set; }
Property Value
MenuIconColumnBackGradientEnd
Gets or sets the end gradient color of a menu icon column background.
public virtual Color MenuIconColumnBackGradientEnd { get; set; }
Property Value
MenuIconColumnBackGradientMiddle
Gets or sets the middle gradient color of a menu icon column background.
public virtual Color MenuIconColumnBackGradientMiddle { get; set; }
Property Value
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
NavigationBarHeaderBackGradientEnd
Gets or sets the end gradient color of a navigationbar header background.
public virtual Color NavigationBarHeaderBackGradientEnd { get; set; }
Property Value
NavigationBarHeaderText
Gets or sets the color of navigationbar header text.
public virtual Color NavigationBarHeaderText { get; set; }
Property Value
NavigationPaneButtonBackGradientBegin
Gets or sets the begin gradient color of a navigationbar pane button background.
public virtual Color NavigationPaneButtonBackGradientBegin { get; set; }
Property Value
NavigationPaneButtonBackGradientEnd
Gets or sets the end gradient color of a navigationbar pane button background.
public virtual Color NavigationPaneButtonBackGradientEnd { get; set; }
Property Value
NavigationPaneButtonBackGradientMid1
Gets or sets the middle gradient color of a navigationbar pane button background.
public virtual Color NavigationPaneButtonBackGradientMid1 { get; set; }
Property Value
NavigationPaneButtonBackGradientMid2
Gets or sets the middle gradient color of a navigationbar pane button background.
public virtual Color NavigationPaneButtonBackGradientMid2 { get; set; }
Property Value
NavigationPaneButtonHotBackGradientBegin
Gets or sets the begin gradient color of a hot navigationbar pane button background.
public virtual Color NavigationPaneButtonHotBackGradientBegin { get; set; }
Property Value
NavigationPaneButtonHotBackGradientEnd
Gets or sets the end gradient color of a hot navigationbar pane button background.
public virtual Color NavigationPaneButtonHotBackGradientEnd { get; set; }
Property Value
NavigationPaneButtonHotBackGradientMid1
Gets or sets the middle gradient color of a navigationbar pane button background.
public virtual Color NavigationPaneButtonHotBackGradientMid1 { get; set; }
Property Value
NavigationPaneButtonHotBackGradientMid2
Gets or sets the middle gradient color of a navigationbar pane button background.
public virtual Color NavigationPaneButtonHotBackGradientMid2 { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientBegin
Gets or sets the begin gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientBegin { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientEnd
Gets or sets the end gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientEnd { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientMid1
Gets or sets the middle gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientMid1 { get; set; }
Property Value
NavigationPaneButtonHotPressedBackGradientMid2
Gets or sets the middle gradient color of a hot/pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonHotPressedBackGradientMid2 { get; set; }
Property Value
NavigationPaneButtonPressedBackGradientBegin
Gets or sets the begin gradient color of a pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonPressedBackGradientBegin { get; set; }
Property Value
NavigationPaneButtonPressedBackGradientEnd
Gets or sets the end gradient color of a pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonPressedBackGradientEnd { get; set; }
Property Value
NavigationPaneButtonPressedBackGradientMid1
Gets or sets the middle gradient color of a pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonPressedBackGradientMid1 { get; set; }
Property Value
NavigationPaneButtonPressedBackGradientMid2
Gets or sets the middle gradient color of a pressed navigationbar pane button background.
public virtual Color NavigationPaneButtonPressedBackGradientMid2 { get; set; }
Property Value
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
ToolBarBackGradientEnd
Gets or sets the end gradient color of a toolbar background.
public virtual Color ToolBarBackGradientEnd { get; set; }
Property Value
ToolBarBackGradientMiddle
Gets or sets the middle gradient color of a toolbar background.
public virtual Color ToolBarBackGradientMiddle { get; set; }
Property Value
ToolBarFloatingTitleBack
Gets or sets the background color of a floating toolbar title bar.
public virtual Color ToolBarFloatingTitleBack { get; set; }
Property Value
ToolBarFloatingTitleText
Gets or sets the text color of a floating toolbar title bar.
public virtual Color ToolBarFloatingTitleText { get; set; }
Property Value
ToolBarGripperDark
Gets or sets the dark color of a toolbar gripper.
public virtual Color ToolBarGripperDark { get; set; }
Property Value
ToolBarGripperLight
Gets or sets the light color of a toolbar gripper.
public virtual Color ToolBarGripperLight { get; set; }
Property Value
ToolBarOptionsBackGradientBegin
Gets or sets the begin gradient color of a toolbar options button background.
public virtual Color ToolBarOptionsBackGradientBegin { get; set; }
Property Value
ToolBarOptionsBackGradientEnd
Gets or sets the end gradient color of a toolbar options button background.
public virtual Color ToolBarOptionsBackGradientEnd { get; set; }
Property Value
ToolBarOptionsBackGradientMiddle
Gets or sets the middle gradient color of a toolbar options button background.
public virtual Color ToolBarOptionsBackGradientMiddle { get; set; }
Property Value
ToolBarOptionsHotBackGradientBegin
Gets or sets the begin gradient color of a hot toolbar options button background.
public virtual Color ToolBarOptionsHotBackGradientBegin { get; set; }
Property Value
ToolBarOptionsHotBackGradientEnd
Gets or sets the end gradient color of a hot toolbar options button background.
public virtual Color ToolBarOptionsHotBackGradientEnd { get; set; }
Property Value
ToolBarOptionsHotBackGradientMiddle
Gets or sets the middle gradient color of a hot toolbar options button background.
public virtual Color ToolBarOptionsHotBackGradientMiddle { get; set; }
Property Value
ToolBarOptionsPressedBackGradientBegin
Gets or sets the begin gradient color of a pressed toolbar options button background.
public virtual Color ToolBarOptionsPressedBackGradientBegin { get; set; }
Property Value
ToolBarOptionsPressedBackGradientEnd
Gets or sets the end gradient color of a pressed toolbar options button background.
public virtual Color ToolBarOptionsPressedBackGradientEnd { get; set; }
Property Value
ToolBarOptionsPressedBackGradientMiddle
Gets or sets the middle gradient color of a pressed toolbar options button background.
public virtual Color ToolBarOptionsPressedBackGradientMiddle { get; set; }
Property Value
ToolBarSeparatorDark
Gets or sets the dark color of a toolbar separator.
public virtual Color ToolBarSeparatorDark { get; set; }
Property Value
ToolBarSeparatorLight
Gets or sets the light color of a toolbar separator.
public virtual Color ToolBarSeparatorLight { get; set; }
Property Value
ToolBarShadow
Gets or sets the color of a toolbar shadow.
public virtual Color ToolBarShadow { get; set; }
Property Value
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 |
|
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
- DisposableObject.Dispose()
- DisposableObject.VerifyNotDisposed()
- DisposableObject.IsDisposed
- DisposableObject.Disposed
- MarshalByRefObject.MemberwiseClone(Boolean)
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.CreateObjRef(Type)
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()