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
要彙總之標記的類型。
參數
textView
類型:Microsoft.VisualStudio.Text.Editor.ITextViewITextView,用來取得 ITagAggregator<T>。
傳回值
類型:Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
textView 之正確型別的 ITagAggregator<T>。
備註
BatchedTagsChanged用來建立標籤彙總的執行緒上引發事件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。