Compartir a través de


IViewClassifierAggregatorService.GetClassifier Method

Gets the cached IClassifier for the given ITextView.

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

Syntax

'Declaración
Function GetClassifier ( _
    textView As ITextView _
) As IClassifier
IClassifier GetClassifier(
    ITextView textView
)
IClassifier^ GetClassifier(
    ITextView^ textView
)
abstract GetClassifier : 
        textView:ITextView -> IClassifier 
function GetClassifier(
    textView : ITextView
) : IClassifier

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Classification.IClassifier
The cached IClassifier.

Exceptions

Exception Condition
ArgumentNullException

textView is nulla null reference (Nothing in Visual Basic).

Remarks

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

.NET Framework Security

See Also

Reference

IViewClassifierAggregatorService Interface

Microsoft.VisualStudio.Text.Classification Namespace