Partager via


VsColors.GetColorKey(Int32) Method

Definition

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

public:
 static System::Object ^ GetColorKey(int vsSysColor);
public:
 static Platform::Object ^ GetColorKey(int vsSysColor);
 static winrt::Windows::Foundation::IInspectable GetColorKey(int vsSysColor);
public static object GetColorKey (int vsSysColor);
static member GetColorKey : int -> obj
Public Function GetColorKey (vsSysColor As Integer) As Object

Parameters

vsSysColor
Int32

The Visual Studio system color.

Returns

The color key.

Remarks

The input is an identifier from the __VSSYSCOLOREX enumeration, which is used with GetVSSysColorEx. The output is a key which can be used to reference the color in Visual Studio from XAML.

Applies to