VsColors.GetColorID(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the __VSSYSCOLOREX identifier for a given WPF color resource key.
public:
static int GetColorID(System::Object ^ vsColorKey);
public:
static int GetColorID(Platform::Object ^ vsColorKey);
static int GetColorID(winrt::Windows::Foundation::IInspectable const & vsColorKey);
public static int GetColorID (object vsColorKey);
static member GetColorID : obj -> int
Public Function GetColorID (vsColorKey As Object) As Integer
Parameters
- vsColorKey
- Object
The Visual Studio color key.
Returns
The color ID.
Remarks
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.