VsColors::GetColorKey Method (Int32)

 

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

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

public:
static Object^ GetColorKey(
	int vsSysColor
)

Parameters

vsSysColor
Type: System::Int32

The Visual Studio system color.

Return Value

Type: System::Object^

The color key.

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.

Return to top
Show: