We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

IClassificationFormatMapService Interface

Looks up a classification format map for a given view.

Namespace:  Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

public interface IClassificationFormatMapService

Public methodGetClassificationFormatMap(String)Gets a IClassificationFormatMap for the specified appearance category.
Public methodGetClassificationFormatMap(ITextView)Gets an IClassificationFormatMap appropriate for the specified text view. This object is likely to be shared among multiple text views.

This is a MEF component part, and should be imported as follows:

[Import] IClassificationFormatMapService formatMap = null;