Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
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
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView to use in retrieving or creating the IClassifier.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.