Provides information to a VSPackage about specific user-settable colorable item attributes of a Display Items that may have been modified by the user.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Thetype exposes the following members.
|Equals||Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code for this instance. (Inherited from ValueType.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns the fully qualified type name of this instance. (Inherited from ValueType.)|
|bBackgroundValid||BOOLEAN value indicating the background color is valid.|
|bFontFlagsValid||BOOLEAN value indicating the font flags are valid.|
|bForegroundValid||BOOLEAN value indicating the foreground color is valid.|
|crBackground||DWORD specifying the background color.|
|crForeground||DWORD specifying the foreground color.|
|dwFontFlags||DWORD specifying the font flags|
Not all information returned in a structure may be valid because the Visual Studio IDE does not always store unmodified settings from the Font and Color property page in the registry. The bForegroundValid, bBackgroundValid,and bFontFlagsValid are set to non-zero (TRUE) when the corresponding value is valid.
Rather than supplying a literal RGB value, a VSPackage may express the color values in the crForeground and crBackground members in terms of a global palette. As well as simplifying implementation, this allows colors to track certain system-wide and environment-wide values. The interpretation of these color values is controlled by flags from the __VSCOLORTYPE enumeration.