This topic has not yet been rated - Rate this topic

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

The ITextBufferFactoryService type exposes the following members.

  NameDescription
Public propertyInertContentTypeA content type for which no associated artifacts are automatically created.
Public propertyPlaintextContentTypePredefined content type for plain text files.
Public propertyTextContentTypeThe text content type.
Top
  NameDescription
Public methodCreateTextBuffer()Creates an empty ITextBuffer with IContentType "text".
Public methodCreateTextBuffer(IContentType)Creates an empty ITextBuffer with the specified IContentType.
Public methodCreateTextBuffer(TextReader, IContentType)Creates an ITextBuffer with the given content type and populates it by reading data from the specified text reader.
Public methodCreateTextBuffer(String, IContentType)Creates an ITextBuffer with the specified IContentType and populates it with the given text.
Top
  NameDescription
Public eventTextBufferCreatedRaised when any ITextBuffer is created.
Top

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

[Import]
ITextBufferFactoryService TextBufferFactoryService =null;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.