Freigeben über


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

'Declaration
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

Return Value

Type: Microsoft.VisualStudio.Text.Tagging.ITagger<T>
The ITagAggregator<T> of the correct type for textView.

.NET Framework Security

See Also

Reference

IViewTaggerProvider Interface

Microsoft.VisualStudio.Text.Tagging Namespace