IViewClassifierAggregatorService::GetClassifier Method (ITextView^)

 

Gets the cached IClassifier for the given ITextView.

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

IClassifier^ GetClassifier(
	ITextView^ textView
)

Parameters

textView
Type: Microsoft.VisualStudio.Text.Editor::ITextView^

The ITextView to use in retrieving or creating the IClassifier.

Exception Condition
ArgumentNullException

textView is null.

If no classifier exists, an IClassifier is created and cached for each ITextBuffer in the view's buffer graph.

Return to top
Show: