IViewTagAggregatorFactoryService 介面
為 ITextView 建立 ITagAggregator<T> 的服務。
命名空間: Microsoft.VisualStudio.Text.Tagging
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Public Interface IViewTagAggregatorFactoryService
public interface IViewTagAggregatorFactoryService
public interface class IViewTagAggregatorFactoryService
type IViewTagAggregatorFactoryService = interface end
public interface IViewTagAggregatorFactoryService
方法
名稱 | 描述 | |
---|---|---|
CreateTagAggregator<T>(ITextView) | 為彙總指定型別之標籤的 ITextView 建立標籤彙總工具。 | |
CreateTagAggregator<T>(ITextView, TagAggregatorOptions) | 為指定的 ITextView 建立標籤彙總工具,並附帶可彙總指定型別之標籤的指定選項。 |
回頁首
備註
這是 MEF 元件的組件,並應該匯入,如下所示:
[Import]
IViewLevelTagAggregatorFactoryService factory = null;