This topic has not yet been rated - Rate this topic

IVsFontAndColorStorage Interface

Allows a VSPackage to retrieve or save font and color data to the registry.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

[GuidAttribute("40BC7B1A-E625-4DA1-86B4-7660F3CCBB16")] 
[InterfaceTypeAttribute(1)] 
public interface IVsFontAndColorStorage
/** @attribute GuidAttribute("40BC7B1A-E625-4DA1-86B4-7660F3CCBB16") */ 
/** @attribute InterfaceTypeAttribute(1) */ 
public interface IVsFontAndColorStorage
GuidAttribute("40BC7B1A-E625-4DA1-86B4-7660F3CCBB16") 
InterfaceTypeAttribute(1) 
public interface IVsFontAndColorStorage

The Visual Studio environment provides an implementation of the IVsFontAndColorStorage interface

Notes to Implementers COM programmers can obtain an IVsFontAndColorStorage interface by calling QueryService with the service ID SID_SVsFontAndColorStorage and the interface ID IID_IVsFontAndColorStorage:

    CComPtr<IVsFontAndColorStorage>  pStorage;
    hr = pSP->QueryService(SID_SVsFontAndColorStorage, IID_IVsFontAndColorStorage, (void**)&pStorage);
    VSASSERT(SUCCEEDED(hr), "IVsFontAndColorStorage not provided");
VSPackages developed using managed code can obtain an IVsFontAndColorStorage interface by calling GetService with an argument of SVsFontAndColorStorage:
    IVsFontAndColorStorage store=null;
    store=GetService(typeof(SVsFontAndColorStorage)) as IVsFontAndColorStorage;
    if (store == null ){
        throw new ApplicationException("Unable to obtain IVsFontAndColorStorage Interface");
    }

Notes to Callers

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ