ITextBufferFactoryService Interface
The factory service for ordinary text buffers.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaração
Public Interface ITextBufferFactoryService
public interface ITextBufferFactoryService
public interface class ITextBufferFactoryService
type ITextBufferFactoryService = interface end
public interface ITextBufferFactoryService
The ITextBufferFactoryService type exposes the following members.
Properties
Name | Description | |
---|---|---|
InertContentType | A content type for which no associated artifacts are automatically created. | |
PlaintextContentType | Predefined content type for plain text files. | |
TextContentType | The text content type. |
Top
Methods
Name | Description | |
---|---|---|
CreateTextBuffer() | Creates an empty ITextBuffer with IContentType "text". | |
CreateTextBuffer(IContentType) | Creates an empty ITextBuffer with the specified IContentType. | |
CreateTextBuffer(TextReader, IContentType) | Creates an ITextBuffer with the given content type and populates it by reading data from the specified text reader. | |
CreateTextBuffer(String, IContentType) | Creates an ITextBuffer with the specified IContentType and populates it with the given text. |
Top
Events
Name | Description | |
---|---|---|
TextBufferCreated | Raised when any ITextBuffer is created. |
Top
Remarks
This is a MEF Component, and should be imported with the following syntax:
[Import]
ITextBufferFactoryService TextBufferFactoryService =null;