IVsFontAndColorUtilities::GetColorType Method (UInt32, Int32)
Visual Studio 2015
Obtain the type of color representation in a COLORREF.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: