Freigeben über


VsBrushes.GetColorID(Object) Method

Definition

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

public:
 static int GetColorID(System::Object ^ vsBrushKey);
public:
 static int GetColorID(Platform::Object ^ vsBrushKey);
 static int GetColorID(winrt::Windows::Foundation::IInspectable const & vsBrushKey);
public static int GetColorID (object vsBrushKey);
static member GetColorID : obj -> int
Public Shared Function GetColorID (vsBrushKey As Object) As Integer

Parameters

vsBrushKey
Object

A key that can be used to reference the color in Visual Studio from XAML.

Returns

An identifier from the __VSSYSCOLOREX enumeration used with GetVSSysColorEx(Int32, UInt32).

Applies to