IClassifierProvider.GetClassifier(ITextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.