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
textView
Tipo: Microsoft.VisualStudio.Text.Editor.ITextViewInterfaz ITextView con la que se va a obtener ITagAggregator<T>.
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
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
IViewTagAggregatorFactoryService Interfaz