ITextBufferFactoryService Interface
Visual Studio 2015
The factory service for ordinary text buffers.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
| 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. |
| Name | Description | |
|---|---|---|
![]() | CreateTextBuffer() | Creates an empty ITextBuffer with IContentType "text". |
![]() | CreateTextBuffer(IContentType) | Creates an empty ITextBuffer with the specified IContentType. |
![]() | CreateTextBuffer(String, IContentType) | Creates an ITextBuffer with the specified IContentType and populates it with the given text. |
![]() | CreateTextBuffer(TextReader, IContentType) | Creates an ITextBuffer with the given content type and populates it by reading data from the specified text reader. |
| Name | Description | |
|---|---|---|
![]() | TextBufferCreated | Raised when any ITextBuffer is created. |
This is a MEF Component, and should be imported with the following syntax:
[Import] ITextBufferFactoryService TextBufferFactoryService =null;
Show:


