다음을 통해 공유


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)

Syntax

'Declaration
<GuidAttribute("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")> _
<InterfaceTypeAttribute()> _
Public Interface IVsFontAndColorDefaults
[GuidAttribute("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")]
[InterfaceTypeAttribute()]
public interface IVsFontAndColorDefaults
[GuidAttribute(L"5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")]
[InterfaceTypeAttribute()]
public interface class IVsFontAndColorDefaults
[<GuidAttribute("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")>]
[<InterfaceTypeAttribute()>]
type IVsFontAndColorDefaults =  interface end
public interface IVsFontAndColorDefaults

The IVsFontAndColorDefaults type exposes the following members.

Methods

  Name Description
Public method GetBaseCategory IVsFontAndColorDefaults::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 method GetCategoryName Returns the display name of a Display Items category.
Public method GetFlags Returns 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 method GetFont Returns a FontInfo structure containing information about a Category's default font to the Visual Studio environment.
Public method GetItem Returns 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 method GetItemByName Returns an AllColorableItemInfo structure containing font and color information for one of the Display Items listed in the Fonts and Colors properties page.
Public method GetItemCount Returns 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 method GetPriority Returns the display priority of the items in the Show settings for: drop-down list of the Fonts and Colors property page.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace