次の方法で共有


VsColors.GetColorID(Object) Method

Definition

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.

Applies to