VSColorTheme.GetThemedColor(ThemeResourceKey) Method

Definition

Gets a VS color value from the current theme. This function offers similar functionality to VsColors.GetThemedGDIColor, but caches the returned color value until the theme is changed for subsequent retrieval of the color with same themeResourceKey.

public:
 static System::Drawing::Color GetThemedColor(Microsoft::VisualStudio::Shell::ThemeResourceKey ^ themeResourceKey);
public static System.Drawing.Color GetThemedColor (Microsoft.VisualStudio.Shell.ThemeResourceKey themeResourceKey);
static member GetThemedColor : Microsoft.VisualStudio.Shell.ThemeResourceKey -> System.Drawing.Color
Public Shared Function GetThemedColor (themeResourceKey As ThemeResourceKey) As Color

Parameters

themeResourceKey
ThemeResourceKey

The identifier of the color to retrieve

Returns

The color value

Applies to