Compartilhar via


Método IViewTagAggregatorFactoryService.CreateTagAggregator<T> (ITextView)

Cria um agregador de marca para o especificado ITextView que agrega as marcas de determinado tipo.

Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)

Sintaxe

'Declaração
Function CreateTagAggregator(Of T As ITag) ( _
    textView As ITextView _
) As ITagAggregator(Of T)
ITagAggregator<T> CreateTagAggregator<T>(
    ITextView textView
)
where T : ITag
generic<typename T>
where T : ITag 
ITagAggregator<T>^ CreateTagAggregator(
    ITextView^ textView
)
abstract CreateTagAggregator : 
        textView:ITextView -> ITagAggregator<'T>  when 'T : ITag
JScript não oferece suporte a tipos ou métodos genéricos.

Parâmetros de tipo

  • T
    O tipo de marca para agregar.

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
O ITagAggregator<T> do tipo correto para textView.

Comentários

O BatchedTagsChanged evento será gerado no thread usado para criar o agregador de marca.

Segurança do .NET Framework

Consulte também

Referência

IViewTagAggregatorFactoryService Interface

Sobrecargas CreateTagAggregator

Namespace Microsoft.VisualStudio.Text.Tagging