Partager via


VsBrushes.GetColorID Method

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

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

Syntax

'Declaration
Public Shared Function GetColorID ( _
    vsBrushKey As Object _
) As Integer
public static int GetColorID(
    Object vsBrushKey
)
public:
static int GetColorID(
    Object^ vsBrushKey
)
static member GetColorID : 
        vsBrushKey:Object -> int
public static function GetColorID(
    vsBrushKey : Object
) : int

Parameters

  • vsBrushKey
    Type: Object

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

Return Value

Type: Int32
An identifier from the __VSSYSCOLOREX enumeration used with GetVSSysColorEx.

.NET Framework Security

See Also

Reference

VsBrushes Class

Microsoft.VisualStudio.Shell Namespace