Compartir a través de


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

Crea un agregador de etiquetas para la interfaz ITextView especificada que agrega las etiquetas del tipo determinado.

Espacio de nombres:  Microsoft.VisualStudio.Text.Tagging
Ensamblado:  Microsoft.VisualStudio.Text.UI (en Microsoft.VisualStudio.Text.UI.dll)

Sintaxis

'Declaración
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 no admite el uso de métodos ni tipos genéricos.

Parámetros de tipo

  • T
    Tipo de la etiqueta que se va a agregar.

Parámetros

Valor devuelto

Tipo: Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
ITagAggregator<T> del tipo correcto para textView.

Comentarios

El evento de BatchedTagsChanged se provoca en el subproceso utilizado para crear el agregador de etiquetas.

Seguridad de .NET Framework

Vea también

Referencia

IViewTagAggregatorFactoryService Interfaz

CreateTagAggregator (Sobrecarga)

Microsoft.VisualStudio.Text.Tagging (Espacio de nombres)