This documentation is archived and is not being maintained.

__VSCOLORTYPE Enumeration

Contains the supported representation for a color values.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

public enum __VSCOLORTYPE

Member nameDescription
CT_INVALIDColor value is invalid.
CT_RAWThe color value is a standard 32 bit RGB color value.
CT_COLORINDEXThe color value is a member of the enumeration.
CT_SYSCOLORThe color value is one used with GetSyscolor.
CT_VSCOLORThe color value is a member of the __VSSYSCOLOREX enumeration and can be used with GetVSSysColorEx.
CT_AUTOMATICThe color tracks the Visual Studio session's automatic color.
CT_TRACK_FOREGROUNDThe color tracks the Windows session's foreground color.
CT_TRACK_BACKGROUNDThe color tracks the Windows session's background color.

The Visual Studio Font and Color mechanism supports several of the differing Windows techniques for expressing colors which are used in AllColorableItemInfo, ColorableItem, FontInfo and by member methods of the IVsFontAndColorUtilitiesinterface

Color data may be:

  • A 32 bit RGB value with the hexadecimal format 0x00bbggrr.

  • One of the indexes used with utility methods such as GetSyscolor and GetVSSysColorEx. or as a member of an enumeration such as COLORINDEX and __VSSYSCOLOREX.

  • The color values are the same as that of another GUI component -- referred to as a tracking value. The actual color value changes as the tracked color object changes.