IBufferTagAggregatorFactoryService 接口

ITextBuffer 创建一个 ITagAggregator<T>

命名空间:  Microsoft.VisualStudio.Text.Tagging
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
Public Interface IBufferTagAggregatorFactoryService
public interface IBufferTagAggregatorFactoryService
public interface class IBufferTagAggregatorFactoryService
type IBufferTagAggregatorFactoryService =  interface end
public interface IBufferTagAggregatorFactoryService

方法

  名称 说明
公共方法 CreateTagAggregator<T>(ITextBuffer) 创建指定文本缓冲区的标记聚合函数。
公共方法 CreateTagAggregator<T>(ITextBuffer, TagAggregatorOptions) 使用给定选项,创建指定文本缓冲区的标记聚合函数。

页首

备注

这是 MEF 组件部件,并且,实现应使用下面的导入它:

[Import] IBufferTagAggregatorFactoryService factory = null;

有关标记的更多信息,请参见 在编辑器内“标记和分类器”一节。 有关扩展和添加标记的信息,请参见 编辑扩展点“扩展的标记”一节。

请参阅

参考

Microsoft.VisualStudio.Text.Tagging 命名空间