Compartir a través de


IVsFontAndColorDefaults Interface

Definition

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.

public interface class IVsFontAndColorDefaults
public interface class IVsFontAndColorDefaults
__interface IVsFontAndColorDefaults
[System.Runtime.InteropServices.Guid("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsFontAndColorDefaults
[System.Runtime.InteropServices.Guid("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsFontAndColorDefaults
[<System.Runtime.InteropServices.Guid("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsFontAndColorDefaults = interface
[<System.Runtime.InteropServices.Guid("5FA2AC9A-3BEF-423A-8B5E-6645811BFB6B")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsFontAndColorDefaults = interface
Public Interface IVsFontAndColorDefaults
Attributes

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.

Methods

GetBaseCategory(Guid)

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.

GetCategoryName(String)

Returns the display name of a Display Items category.

GetFlags(UInt32)

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.

GetFont(FontInfo[])

Returns a FontInfo structure containing information about a Category's default font to the Visual Studio environment.

GetItem(Int32, AllColorableItemInfo[])

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.

GetItemByName(String, AllColorableItemInfo[])

Returns an AllColorableItemInfo structure containing font and color information for one of the Display Items listed in the Fonts and Colors properties page.

GetItemCount(Int32)

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.

GetPriority(UInt16)

Returns the display priority of the items in the Show settings for: drop-down list of the Fonts and Colors property page.

Applies to