IClassifierProvider.GetClassifier Method

Gets a classifier for the given text buffer.

Namespace:  Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

IClassifier GetClassifier(
	ITextBuffer textBuffer
)

Parameters

textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer to classify.

Return Value

Type: Microsoft.VisualStudio.Text.Classification.IClassifier
A classifier for the text buffer, or null if the provider cannot provide one in its current state.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft