ITextBufferFactoryService3 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
普通 TextBuffers 的工厂服务。
public interface class ITextBufferFactoryService3 : Microsoft::VisualStudio::Text::ITextBufferFactoryService
public interface ITextBufferFactoryService3 : Microsoft.VisualStudio.Text.ITextBufferFactoryService
type ITextBufferFactoryService3 = interface
interface ITextBufferFactoryService
Public Interface ITextBufferFactoryService3
Implements ITextBufferFactoryService
- 实现
注解
这是一个 MEF 组件,应按如下所示导入:
[Import]
ITextBufferFactoryService factory = null;
Any ITextBufferFactoryService 将 upcastable 到 ITextBufferFactoryService3 。
属性
| InertContentType |
不会为其自动创建关联项目的内容类型。 (继承自 ITextBufferFactoryService) |
| PlaintextContentType |
用于纯文本文件的预定义内容类型。 (继承自 ITextBufferFactoryService) |
| TextContentType |
预定义的默认内容类型。 这是大多数内容类型的基类型。 (继承自 ITextBufferFactoryService) |
方法
| CreateTextBuffer() |
ITextBuffer使用 "text" 创建一个空的 IContentType 。 (继承自 ITextBufferFactoryService) |
| CreateTextBuffer(IContentType) |
使用指定的创建一个空的 ITextBuffer IContentType 。 (继承自 ITextBufferFactoryService) |
| CreateTextBuffer(ITextImage, IContentType) |
ITextBuffer使用指定的创建一个 IContentType ,并使用中包含的文本填充该 |
| CreateTextBuffer(SnapshotSpan, IContentType) |
ITextBuffer使用指定的创建一个 IContentType ,并使用中包含的给定文本填充该 |
| CreateTextBuffer(String, IContentType) |
使用 ITextBuffer 指定的创建一个 IContentType ,并使用给定文本填充它。 (继承自 ITextBufferFactoryService) |
| CreateTextBuffer(TextReader, IContentType) |
ITextBuffer使用给定的创建一个 |
| CreateTextBuffer(TextReader, IContentType, Int64, String) |
ITextBuffer使用给定的创建一个 |
事件
| TextBufferCreated |
当创建任何时引发 ITextBuffer 。 (继承自 ITextBufferFactoryService) |