Partager via


VSColorTheme Class

Helper to get colors from the current Visual Studio theme and provide notifications when the theme or colors change.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.PlatformUI.VSColorTheme

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public NotInheritable Class VSColorTheme
public static class VSColorTheme
public ref class VSColorTheme abstract sealed
[<AbstractClass>]
[<Sealed>]
type VSColorTheme =  class end
public final class VSColorTheme

The VSColorTheme type exposes the following members.

Methods

  Name Description
Public methodStatic member GetThemedColor Gets the color of the specified resource key.

Top

Events

  Name Description
Public eventStatic member ThemeChanged Raised when Visual Studio theme color changes.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.PlatformUI Namespace