共用方式為


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

Return Value

Type: System.Drawing.Color
Returns the color.

.NET Framework Security

See Also

Reference

VSColorTheme Class

Microsoft.VisualStudio.PlatformUI Namespace