VSColorTheme.GetThemedColor(ThemeResourceKey) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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