IVsFontAndColorDefaults Interface

Allows a VSPackage to support the IDE's Fonts and Colors properties page by defining default fonts and colors for a window or UI component.

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

[GuidAttribute("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")]
[InterfaceTypeAttribute()]
public interface IVsFontAndColorDefaults

The IVsFontAndColorDefaults type exposes the following members.

  NameDescription
Public methodGetBaseCategoryIVsFontAndColorDefaults::GetBaseCategory allows a VSPackage that manages fonts and colors to change the behavior of the Use Defaults button of the Fonts and Colors properties page.
Public methodGetCategoryNameReturns the display name of a Display Items category.
Public methodGetFlagsReturns a combination of __FONTCOLORFLAGS values. The member of the __FONTCOLORFLAGS enumeration define how the Fonts and Colors properties page in the Options dialog box implements font and color changes.
Public methodGetFontReturns a FontInfo structure containing information about a Category's default font to the Visual Studio environment.
Public methodGetItemReturns an AllColorableItemInfo structure containing font and color information for specific member of the Display Items list for a given Category as indicated by the iItem parameter.
Public methodGetItemByNameReturns an AllColorableItemInfo structure containing font and color information for one of the Display Items listed in the Fonts and Colors properties page.
Public methodGetItemCountReturns the number of colorable Display items in the Options dialog box. The Display items are provided by the selected option in the Show Settings for: drop-down list.
Public methodGetPriorityReturns the display priority of the items in the Show settings for: drop-down list of the Fonts and Colors property page.
Top

Notes to Implementers

Implement for any VSPackage with window or UI component that needs to communicate default font and color attributes to the Fonts and Colors page in the Options dialog box, which can be launched from the Tools menu. The VSPackage creates or modifies a Category in the Show settings for: drop-down box in the Fonts and Colors page.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft