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)
Syntax
'宣言
Public Interface IClassifierProvider
public interface IClassifierProvider
public interface class IClassifierProvider
type IClassifierProvider = interface end
public interface IClassifierProvider
The IClassifierProvider type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetClassifier | Gets a classifier for the given text buffer. |
Top
Remarks
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.