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
textView
Type : Microsoft.VisualStudio.Text.Editor.ITextViewITextView avec lequel obtenir le ITagAggregator<T>.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.
Voir aussi
Référence
IViewTagAggregatorFactoryService Interface