共用方式為


FONTCOLORPREFERENCES2 Members

Include Protected Members
Include Inherited Members

Specifies color table preferences to be used when painting text or markers.

The FONTCOLORPREFERENCES2 type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field hBoldViewFont Bold fonts that are used by text views.
Public field hRegularViewFont Regular fonts that are used by text views.
Public field pColorTable COM pointer to the color table for the colorable item provider indicated by *pguidColorService. This object is created as a result of this call if it has not been created already. This pointer is guaranteed to be valid if the FONTCOLORPREFERENCES structure is an [in] parameter to a function. If you want to hold onto it beyond that you must AddRef (and later Release) it.
Public field pguidColorCategory GUID of the category to be used for the editor's color settings. The editor can handle separate categories for fonts and colors.
Public field pguidColorService CLSID of an IVsProvideColorableItems implementor.
Public field pguidFontCategory GUID of the category to be used for the editor's font settings. The editor can handle separate categories for fonts and colors.

Top

See Also

Reference

FONTCOLORPREFERENCES2 Structure

Microsoft.VisualStudio.TextManager.Interop Namespace