IVsFontAndColorEvents Interface
Notifies VSPackages using font and color information about changes in font and color settings.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("F73E1D1E-3D1B-44F0-B736-D59F960B7F9E")> _
Public Interface IVsFontAndColorEvents
'Usage
Dim instance As IVsFontAndColorEvents
[InterfaceTypeAttribute()]
[GuidAttribute("F73E1D1E-3D1B-44F0-B736-D59F960B7F9E")]
public interface IVsFontAndColorEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"F73E1D1E-3D1B-44F0-B736-D59F960B7F9E")]
public interface class IVsFontAndColorEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("F73E1D1E-3D1B-44F0-B736-D59F960B7F9E")>]
type IVsFontAndColorEvents = interface end
public interface IVsFontAndColorEvents
Remarks
Implementing IVsFontAndColorEvents is not required. However, if it is not implemented, VSPackages must explicitly poll for changes in font and color settings using the GetItem or GetItem methods.
Fonts and Colors Events are broadcast when:
Font or color attributes are changed,
Font or color setting are reset to their defaults, or
The Options dialog box in the Tools menu is closed.
It is not necessary to advise the environment that a process is handling IVsFontAndColorEvents, because the Fonts and Colors property page uses the list of categories in the registry to poll all services implementing fonts and color support.
Notes to Implementers
Implement the IVsFontAndColorEvents interface if you want the environment to call the VSPackage whenever the fonts and colors setting for a Category it manages changes. These changes can be initiated programmatically or through the Fonts and Colors property page.