Partager via


VsBrushes.GetColorID Method

Gets the VSCOLOR identifier for a given WPF brush resource key. The input is a key which can be used to reference the color in Visual Studio from XAML. The output is an identifier from the VSCOLOR enumeration used with IVsUIShell2.GetVSSysColorEx.

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

Syntax

'Déclaration
Public Shared Function GetColorID ( _
    vsBrushKey As Object _
) As Integer
'Utilisation
Dim vsBrushKey As Object
Dim returnValue As Integer

returnValue = VsBrushes.GetColorID(vsBrushKey)
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

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

VsBrushes Class

VsBrushes Members

Microsoft.VisualStudio.Shell Namespace