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.

Public methodGetClassifierGets a classifier for the given text buffer.

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


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.

Community Additions