VsColors::GetColorID Method (Object^)

 

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

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

public:
static int GetColorID(
	Object^ vsColorKey
)

Parameters

vsColorKey
Type: System::Object^

The Visual Studio color key.

Return Value

Type: System::Int32

The color ID.

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

Return to top
Show: