VsColors::GetThemedGDIColor Method (IVsUIShell5^, ThemeResourceKey^)

 

Gets a Color value from the current theme for the given color key.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
[ExtensionAttribute]
static Color GetThemedGDIColor(
	IVsUIShell5^ vsUIShell,
	ThemeResourceKey^ themeResourceKey
)

Parameters

vsUIShell
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIShell5^

The IVsUIShell5 service, used to get the color's value.

themeResourceKey
Type: Microsoft.VisualStudio.Shell::ThemeResourceKey^

The key for which to find the color.

Return Value

Type: System.Drawing::Color

The current theme's value of the named color.

Return to top
Show: