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)
Syntax
'宣言
Function GetClassifier ( _
textBuffer As ITextBuffer _
) As IClassifier
IClassifier GetClassifier(
ITextBuffer textBuffer
)
IClassifier^ GetClassifier(
ITextBuffer^ textBuffer
)
abstract GetClassifier :
textBuffer:ITextBuffer -> IClassifier
function GetClassifier(
textBuffer : ITextBuffer
) : IClassifier
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 nulla null reference (Nothing in Visual Basic) if the provider cannot provide one in its current state.
.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.