Metoda VSColorTheme.GetThemedColor —
Gets the color of the specified resource key.
Przestrzeń nazw: Microsoft.VisualStudio.PlatformUI
Zestaw: Microsoft.VisualStudio.Shell.11.0 (w Microsoft.VisualStudio.Shell.11.0.dll)
Składnia
'Deklaracja
Public Shared Function GetThemedColor ( _
themeResourceKey As ThemeResourceKey _
) As Color
public static Color GetThemedColor(
ThemeResourceKey themeResourceKey
)
Parametry
- themeResourceKey
Typ: Microsoft.VisualStudio.Shell.ThemeResourceKey
The resource key to get the color for.
Wartość zwracana
Typ: System.Drawing.Color
Returns the color.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..