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)

public interface IVsFontAndColorDefaults

The IVsFontAndColorDefaults type exposes the following members.

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.

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.

Community Additions