Partager via


IClassifierProvider.GetClassifier(ITextBuffer) Method

Definition

Gets a classifier for the given text buffer.

public:
 Microsoft::VisualStudio::Text::Classification::IClassifier ^ GetClassifier(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
 Microsoft::VisualStudio::Text::Classification::IClassifier ^ GetClassifier(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::Text::Classification::IClassifier GetClassifier(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.Text.Classification.IClassifier GetClassifier (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetClassifier : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Classification.IClassifier
Public Function GetClassifier (textBuffer As ITextBuffer) As IClassifier

Parameters

textBuffer
ITextBuffer

The ITextBuffer to classify.

Returns

A classifier for the text buffer, or null if the provider cannot do so in its current state.

Applies to