IClassifierAggregatorService.GetClassifier Method (ITextBuffer)

 

Gets the cached IClassifier for the given ITextBuffer.

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 with which to retrieve/create the IClassifier.

Exception Condition
ArgumentNullException

textBuffer is null.

If there is no existing classifier, an IClassifier will be created and cached with the given ITextBuffer.

Return to top
Show: