Partager via


VsColors.GetColorKey Method

Gets the WPF ResourceDictionary color key for a given VSCOLOR identifier.

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

Syntax

'Déclaration
Public Shared Function GetColorKey ( _
    vsSysColor As Integer _
) As Object
'Utilisation
Dim vsSysColor As Integer
Dim returnValue As Object

returnValue = VsColors.GetColorKey(vsSysColor)
public static Object GetColorKey(
    int vsSysColor
)
public:
static Object^ GetColorKey(
    int vsSysColor
)
static member GetColorKey : 
        vsSysColor:int -> Object 
public static function GetColorKey(
    vsSysColor : int
) : Object

Parameters

  • vsSysColor
    Type: System.Int32
    The Visual Studio system color.

Return Value

Type: System.Object
The color key.

Remarks

The input is an identifier from the VSCOLOR enumeration used with [M:Microsoft.VisualStudio.Shell.Interop.IVsUIShell2.GetVSSysColorEx(System.Int32,System.UInt32@))]. The output is a key which can be used to reference the color in Visual Studio from XAML.

.NET Framework Security

See Also

Reference

VsColors Class

VsColors Members

Microsoft.VisualStudio.Shell Namespace