ITextDocumentFactoryService ITextDocumentFactoryService ITextDocumentFactoryService ITextDocumentFactoryService ITextDocumentFactoryService 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

Remarks

This is a MEF component part, and should be imported as follows:

[Import]  
ITextDocumentFactoryService factory = null;  

Methods

CreateAndLoadTextDocument(String, IContentType) CreateAndLoadTextDocument(String, IContentType) CreateAndLoadTextDocument(String, IContentType) CreateAndLoadTextDocument(String, IContentType) CreateAndLoadTextDocument(String, IContentType) CreateAndLoadTextDocument(String, IContentType)

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

CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean) CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean) CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean) CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean) CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean) CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean)

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

CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean) CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean) CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean) CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean) CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean) CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean)

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

CreateTextDocument(ITextBuffer, String) CreateTextDocument(ITextBuffer, String) CreateTextDocument(ITextBuffer, String) CreateTextDocument(ITextBuffer, String) CreateTextDocument(ITextBuffer, String) CreateTextDocument(ITextBuffer, String)

Creates an ITextDocument with textBuffer, which is to be saved to the file.

TryGetTextDocument(ITextBuffer, ITextDocument) TryGetTextDocument(ITextBuffer, ITextDocument) TryGetTextDocument(ITextBuffer, ITextDocument) TryGetTextDocument(ITextBuffer, ITextDocument) TryGetTextDocument(ITextBuffer, ITextDocument) TryGetTextDocument(ITextBuffer, ITextDocument)

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

Events

TextDocumentCreated TextDocumentCreated TextDocumentCreated TextDocumentCreated TextDocumentCreated TextDocumentCreated

Occurs when an ITextDocument is created.

TextDocumentDisposed TextDocumentDisposed TextDocumentDisposed TextDocumentDisposed TextDocumentDisposed TextDocumentDisposed

Occurs when an ITextDocument is disposed.

Applies to