VSColorTheme.GetThemedColor Method
Gets the color of the specified resource key.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Public Shared Function GetThemedColor ( _
themeResourceKey As ThemeResourceKey _
) As Color
public static Color GetThemedColor(
ThemeResourceKey themeResourceKey
)
Parameters
- themeResourceKey
Type: Microsoft.VisualStudio.Shell.ThemeResourceKey
The resource key to get the color for.
Return Value
Type: System.Drawing.Color
Returns the color.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.