IViewTagAggregatorFactoryService.CreateTagAggregator<T> 方法 (ITextView)

为指定 ITextView 创建一个用于聚合给定标记类型的标记聚合函数。

命名空间:  Microsoft.VisualStudio.Text.Tagging
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
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 不支持泛型类型或方法。

类型参数

  • T
    要聚合的标记的类型。

参数

返回值

类型:Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
textView 的正确类型的 ITagAggregator<T>

备注

BatchedTagsChanged 事件在所使用的线程上引发创建标记聚合函数。

.NET Framework 安全性

请参阅

参考

IViewTagAggregatorFactoryService 接口

CreateTagAggregator 重载

Microsoft.VisualStudio.Text.Tagging 命名空间