Partager via


IViewTagAggregatorFactoryService.CreateTagAggregator<T>, méthode (ITextView)

Crée une agrégation de balises pour le ITextView spécifié qui regroupe des balises d'un type donné.

Espace de noms :  Microsoft.VisualStudio.Text.Tagging
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
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 ne prend pas en charge les types ou les méthodes génériques.

Paramètres de type

  • T
    Type de la balise à agréger.

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
ITagAggregator<T> du type correct pour textView.

Notes

L'événement d'BatchedTagsChanged sera déclenché sur le thread utilisé pour créer la fonction d'agrégation de balises.

Sécurité .NET Framework

Voir aussi

Référence

IViewTagAggregatorFactoryService Interface

CreateTagAggregator, surcharge

Microsoft.VisualStudio.Text.Tagging, espace de noms