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

NameDescription
System_CAPS_pubmethodGetClassifier(ITextBuffer)

Gets a classifier for the given text buffer.

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.

Return to top
Show: