ITextBufferFactoryService Interface
TOC
Collapse the table of content
Expand the table of content

ITextBufferFactoryService Interface

 

The factory service for ordinary text buffers.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

type ITextBufferFactoryService = interface end

NameDescription
System_CAPS_pubpropertyInertContentType

A content type for which no associated artifacts are automatically created.

System_CAPS_pubpropertyPlaintextContentType

Predefined content type for plain text files.

System_CAPS_pubpropertyTextContentType

The text content type.

NameDescription
System_CAPS_pubmethodCreateTextBuffer()

Creates an empty ITextBuffer with IContentType "text".

System_CAPS_pubmethodCreateTextBuffer(IContentType)

Creates an empty ITextBuffer with the specified IContentType.

System_CAPS_pubmethodCreateTextBuffer(String, IContentType)

Creates an ITextBuffer with the specified IContentType and populates it with the given text.

System_CAPS_pubmethodCreateTextBuffer(TextReader, IContentType)

Creates an ITextBuffer with the given content type and populates it by reading data from the specified text reader.

NameDescription
System_CAPS_pubeventTextBufferCreated

Raised when any ITextBuffer is created.

This is a MEF Component, and should be imported with the following syntax:

[Import]
ITextBufferFactoryService TextBufferFactoryService =null;
Return to top
Show:
© 2016 Microsoft