ITextDocumentFactoryService Interface

Definition

Represents a service that creates, loads, and disposes text documents.

public interface class ITextDocumentFactoryService
public interface class ITextDocumentFactoryService
__interface ITextDocumentFactoryService
public interface ITextDocumentFactoryService
type ITextDocumentFactoryService = interface
Public Interface ITextDocumentFactoryService
Derived

Remarks

Represents a service that creates, load, and disposes text documents. This is a MEF component part, and should be imported as follows: [Import] ITextDocumentFactoryService factory = null;

Methods

CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean)

Creates an ITextDocument that opens and loads the contents of filePath into a new ITextBuffer.

CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean)

Creates an ITextDocument that opens and loads the contents of filePath into a new ITextBuffer.

CreateAndLoadTextDocument(String, IContentType)

Creates an ITextDocument that opens and loads the contents of filePath into a new ITextBuffer.

CreateTextDocument(ITextBuffer, String)

Creates an ITextDocument with textBuffer, which is to be saved to filePath

TryGetTextDocument(ITextBuffer, ITextDocument)

Retrieve an ITextDocument for the given buffer, if one exists.

Events

TextDocumentCreated

Occurs when an ITextDocument is created.

TextDocumentDisposed

Occurs when an ITextDocument is disposed.

Applies to