VsBrushes.GetBrushKey Method
Gets the WPF ResourceDictionary brush key for a given VSCOLOR identifier. The input is an identifier from the VSCOLOR enumeration used with IVsUIShell2.GetVSSysColorEx. The output is a key which can be used to reference the brush in Visual Studio from XAML.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Public Shared Function GetBrushKey ( _
vsSysColor As Integer _
) As Object
'Utilisation
Dim vsSysColor As Integer
Dim returnValue As Object
returnValue = VsBrushes.GetBrushKey(vsSysColor)
public static Object GetBrushKey(
int vsSysColor
)
public:
static Object^ GetBrushKey(
int vsSysColor
)
static member GetBrushKey :
vsSysColor:int -> Object
public static function GetBrushKey(
vsSysColor : int
) : Object
Parameters
- vsSysColor
Type: System.Int32
Return Value
Type: System.Object
.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.