ITaggerProvider.CreateTagger<T> Method
Creates a tag provider for the specified buffer.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
声明
Function CreateTagger(Of T As ITag) ( _
buffer As ITextBuffer _
) As ITagger(Of T)
ITagger<T> CreateTagger<T>(
ITextBuffer buffer
)
where T : ITag
generic<typename T>
where T : ITag
ITagger<T>^ CreateTagger(
ITextBuffer^ buffer
)
abstract CreateTagger :
buffer:ITextBuffer -> ITagger<'T> when 'T : ITag
JScript does not support generic types or methods.
Type Parameters
- T
The type of the tag.
Parameters
- buffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer.
Return Value
Type: Microsoft.VisualStudio.Text.Tagging.ITagger<T>
The ITagger<T>.
.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.