Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Obtain the type of color representation in a COLORREF.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function GetColorType ( _
crSource As UInteger, _
<OutAttribute> ByRef pctType As Integer _
) As Integer
'Usage
Dim instance As IVsFontAndColorUtilities
Dim crSource As UInteger
Dim pctType As Integer
Dim returnValue As Integer
returnValue = instance.GetColorType(crSource, _
pctType)
int GetColorType(
uint crSource,
out int pctType
)
int GetColorType(
[InAttribute] unsigned int crSource,
[OutAttribute] int% pctType
)
abstract GetColorType :
crSource:uint32 *
pctType:int byref -> int
function GetColorType(
crSource : uint,
pctType : int
) : int
Parameters
- crSource
Type: System.UInt32
[in] A COLORREF representation of color value.
- pctType
Type: System.Int32%
[out] An integer representing the color type of crSource.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The value of pctType will be a member of the __VSCOLORTYPE enumeration.
Managed code can obtain functionality equivalent to GetSysColor with SystemColors and convert between COLORREF and the System.Drawing.Color structure using M:System.Drawing.ColorTranslator.FromWin32 and M:System.Drawing.ColorTranslator.ToWin32.
.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.
See Also
Reference
IVsFontAndColorUtilities Interface
IVsFontAndColorUtilities Members
Microsoft.VisualStudio.Shell.Interop Namespace