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