IClassifierProvider Interface

Creates a classifier for a given ITextBuffer in the given environment.

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

public interface IClassifierProvider

The IClassifierProvider type exposes the following members.

  NameDescription
Public methodGetClassifierGets a classifier for the given text buffer.
Top

This is a MEF component part, and should be exported with the following attribute:

[Export(typeof(IClassifierProvider))] 

Component exporters must add at least one ContentTypeAttribute to specify the content types for which the component is valid.

For more information about classification, see the section "Extending Classification Types and Classification Formats" in Editor Extension Points.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft