共用方式為


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 命名空間