Partager via


VsColors.GetThemedGDIColor(IVsUIShell5, ThemeResourceKey) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::Color GetThemedGDIColor(Microsoft::VisualStudio::Shell::Interop::IVsUIShell5 ^ vsUIShell, Microsoft::VisualStudio::Shell::ThemeResourceKey ^ themeResourceKey);
public static System.Drawing.Color GetThemedGDIColor (this Microsoft.VisualStudio.Shell.Interop.IVsUIShell5 vsUIShell, Microsoft.VisualStudio.Shell.ThemeResourceKey themeResourceKey);
static member GetThemedGDIColor : Microsoft.VisualStudio.Shell.Interop.IVsUIShell5 * Microsoft.VisualStudio.Shell.ThemeResourceKey -> System.Drawing.Color
<Extension()>
Public Function GetThemedGDIColor (vsUIShell As IVsUIShell5, themeResourceKey As ThemeResourceKey) As Color

Parameters

vsUIShell
IVsUIShell5

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

themeResourceKey
ThemeResourceKey

The key to find the color for.

Returns

The current theme's value of the named color.

Applies to