IViewTaggerProvider.CreateTagger<T> Method
Creates a tag provider for the specified view and buffer.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Dichiarazione
Function CreateTagger(Of T As ITag) ( _
textView As ITextView, _
buffer As ITextBuffer _
) As ITagger(Of T)
ITagger<T> CreateTagger<T>(
ITextView textView,
ITextBuffer buffer
)
where T : ITag
generic<typename T>
where T : ITag
ITagger<T>^ CreateTagger(
ITextView^ textView,
ITextBuffer^ buffer
)
abstract CreateTagger :
textView:ITextView *
buffer:ITextBuffer -> ITagger<'T> when 'T : ITag
JScript does not support generic types or methods.
Type Parameters
- T
The type of the tag.
Parameters
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView.
- buffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer.
Return Value
Type: Microsoft.VisualStudio.Text.Tagging.ITagger<T>
The ITagAggregator<T> of the correct type for textView.
.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.