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
- vsBrushKey
Type: System.Object
Return Value
Type: System.Int32
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.