IViewTagAggregatorFactoryService.CreateTagAggregator<T> 方法 (ITextView, TagAggregatorOptions)

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

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

语法

声明
Function CreateTagAggregator(Of T As ITag) ( _
    textView As ITextView, _
    options As TagAggregatorOptions _
) As ITagAggregator(Of T)
ITagAggregator<T> CreateTagAggregator<T>(
    ITextView textView,
    TagAggregatorOptions options
)
where T : ITag
generic<typename T>
where T : ITag 
ITagAggregator<T>^ CreateTagAggregator(
    ITextView^ textView, 
    TagAggregatorOptions options
)
abstract CreateTagAggregator : 
        textView:ITextView * 
        options:TagAggregatorOptions -> ITagAggregator<'T>  when 'T : ITag
JScript 不支持泛型类型或方法。

类型参数

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

参数

返回值

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

.NET Framework 安全性

请参阅

参考

IViewTagAggregatorFactoryService 接口

CreateTagAggregator 重载

Microsoft.VisualStudio.Text.Tagging 命名空间