WindowsColorScheme Class
Provides a Windows color scheme.
public class WindowsColorScheme : DisposableObject, IDisposable, IWindowsColorScheme
- Inheritance:
- Object MarshalByRefObject DisposableObject Object
- Implements:
- System.IDisposable IWindowsColorScheme
Constructors
WindowsColorScheme(WindowsColorSchemeType)
Creates an instance of the WindowsColorScheme
class.
protected WindowsColorScheme(WindowsColorSchemeType baseColorSchemeType)
Parameter | Type | Description |
---|---|---|
baseColorSchemeType | WindowsColorSchemeType | The base WindowsColorSchemeType from which colors should be initialized. |
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
BarButtonSelectedBorder
Gets or sets the border color of a selected bar button.
public virtual Color BarButtonSelectedBorder { 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.
DockGuideArrowBack
Gets or sets the background color of an arrow on a dock guide.
public virtual Color DockGuideArrowBack { get; set; }
Property Value
DockGuideBack
Gets or sets the background color of a dock guide.
public virtual Color DockGuideBack { get; set; }
Property Value
DockGuideBorder
Gets or sets the border color of a dock guide.
public virtual Color DockGuideBorder { get; set; }
Property Value
DockGuideButtonBack
Gets or sets the background color of a button on a dock guide.
public virtual Color DockGuideButtonBack { get; set; }
Property Value
DockGuideButtonBorder
Gets or sets the border color of a button on a dock guide.
public virtual Color DockGuideButtonBorder { get; set; }
Property Value
DockGuideGlyphBack
Gets or sets the background color of a glyph on a dock guide.
public virtual Color DockGuideGlyphBack { get; set; }
Property Value
DockGuideGlyphBorder
Gets or sets the border color of a glyph on a dock guide.
public virtual Color DockGuideGlyphBorder { get; set; }
Property Value
DockingWindowPreviewBack
Gets or sets the background color of the dock preview shown for a docking window.
public virtual Color DockingWindowPreviewBack { get; set; }
Property Value
DockingWindowPreviewBorder
Gets or sets the border color of the dock preview shown for a docking window.
public virtual Color DockingWindowPreviewBorder { get; set; }
Property Value
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
Intent
Gets a WindowsColorSchemeIntent value that specifies whether the color scheme is meant to be light, dark, etc.
public virtual WindowsColorSchemeIntent Intent { get; }
Property Value
- WindowsColorSchemeIntent:
One of the WindowsColorSchemeType values.
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
MetroDark
Gets the IWindowsColorScheme that represents the Metro Dark color scheme.
public static IWindowsColorScheme MetroDark { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Metro Dark color scheme.
MetroLight
Gets the IWindowsColorScheme that represents the Metro Light color scheme.
public static IWindowsColorScheme MetroLight { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Metro Light color scheme.
NavigationBarGripperDark
Gets or sets the dark color of a navigation bar gripper.
public virtual Color NavigationBarGripperDark { get; set; }
Property Value
NavigationBarGripperLight
Gets or sets the light color of a navigation bar gripper.
public virtual Color NavigationBarGripperLight { get; set; }
Property Value
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 IWindowsColorScheme that represents the Office 2007 black color scheme.
public static IWindowsColorScheme Office2007Black { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Office 2007 black color scheme.
Office2007Blue
Gets the IWindowsColorScheme that represents the Office 2007 blue color scheme.
public static IWindowsColorScheme Office2007Blue { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Office 2007 blue color scheme.
Office2007Silver
Gets the IWindowsColorScheme that represents the Office 2007 silver color scheme.
public static IWindowsColorScheme Office2007Silver { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Office 2007 silver color scheme.
StatusBarBack
Gets or sets the background color for a status bar.
public virtual Color StatusBarBack { get; set; }
Property Value
StatusBarGripperDark
Gets or sets the dark color for the status bar gripper.
public virtual Color StatusBarGripperDark { get; set; }
Property Value
StatusBarGripperLight
Gets or sets the light color for the status bar gripper.
public virtual Color StatusBarGripperLight { get; set; }
Property Value
StatusBarPanelBorder
Gets or sets the border color for a status bar.
public virtual Color StatusBarPanelBorder { get; set; }
Property Value
StatusBarPanelDisabledText
Gets or sets the disabled foreground color for a status bar.
public virtual Color StatusBarPanelDisabledText { get; set; }
Property Value
StatusBarPanelLinkActiveText
Gets or sets the foreground color a link displayed in a status bar when it is active (i.e., mouse over).
public virtual Color StatusBarPanelLinkActiveText { get; set; }
Property Value
StatusBarPanelLinkText
Gets or sets the normal foreground color a link displayed in a status bar.
public virtual Color StatusBarPanelLinkText { get; set; }
Property Value
StatusBarPanelLinkVisitedText
Gets or sets the foreground color a link displayed in a status bar that has been previously visited.
public virtual Color StatusBarPanelLinkVisitedText { get; set; }
Property Value
StatusBarPanelText
Gets or sets the foreground color for a status bar.
public virtual Color StatusBarPanelText { get; set; }
Property Value
StatusBarProgressFilledBack
Gets or sets the filled background color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressFilledBack { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
StatusBarProgressFilledText
Gets or sets the filled foreground color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressFilledText { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
StatusBarProgressUnfilledBack
Gets or sets the unfilled background color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressUnfilledBack { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
StatusBarProgressUnfilledText
Gets or sets the unfilled foreground color of a progress bar displayed in a status bar.
public virtual Color StatusBarProgressUnfilledText { get; set; }
Property Value
Remarks
Value does not apply to renderers which support native visual styles.
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 IWindowsColorScheme that represents the Visual Studio 2005 color scheme.
public static IWindowsColorScheme VisualStudio2005 { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Visual Studio 2005 color scheme.
WindowsClassic
Gets the IWindowsColorScheme that represents the Windows Classic color scheme.
public static IWindowsColorScheme WindowsClassic { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Windows Classic color scheme.
WindowsDefault
Gets the IWindowsColorScheme that represents the default Windows color scheme.
public static IWindowsColorScheme WindowsDefault { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the default Windows color scheme.
WindowsXPBlue
Gets the IWindowsColorScheme that represents the Windows XP blue color scheme.
public static IWindowsColorScheme WindowsXPBlue { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Windows XP blue color scheme.
WindowsXPOliveGreen
Gets the IWindowsColorScheme that represents the Windows XP olive green color scheme.
public static IWindowsColorScheme WindowsXPOliveGreen { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Windows XP olive green color scheme.
WindowsXPRoyale
Gets the IWindowsColorScheme that represents the Windows XP royale color scheme.
public static IWindowsColorScheme WindowsXPRoyale { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme that represents the Windows XP royale color scheme.
WindowsXPSilver
Gets the IWindowsColorScheme that represents the Windows XP silver color scheme.
public static IWindowsColorScheme WindowsXPSilver { get; }
Property Value
- IWindowsColorScheme:
The IWindowsColorScheme 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 IWindowsColorScheme that represents the specified WindowsColorSchemeType.
public static IWindowsColorScheme GetColorScheme(WindowsColorSchemeType colorSchemeType)
Parameter | Type | Description |
---|---|---|
colorSchemeType | WindowsColorSchemeType | The WindowsColorSchemeType to return. |
Returns
- IWindowsColorScheme:
The IWindowsColorScheme that represents the specified WindowsColorSchemeType.
GetKnownColor(KnownColor)
Gets a known color, optionally adjusted for the color scheme (e.g., dark schemes may adjust the color to be suited for a dark scheme).
public virtual Color GetKnownColor(KnownColor color)
Parameter | Type | Description |
---|---|---|
color | KnownColor | The color. |
Returns
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()
- System.Object.MemberwiseClone()