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;

请参阅

参考

Microsoft.VisualStudio.Text.Tagging 命名空间