共用方式為


VSColorTheme Class

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.PlatformUI.VSColorTheme

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

Syntax

'宣告
Public NotInheritable Class VSColorTheme
public static 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