Freigeben über


ITextDocumentFactoryService2 Interface

Definition

public interface class ITextDocumentFactoryService2 : Microsoft::VisualStudio::Text::ITextDocumentFactoryService
public interface ITextDocumentFactoryService2 : Microsoft.VisualStudio.Text.ITextDocumentFactoryService
type ITextDocumentFactoryService2 = interface
    interface ITextDocumentFactoryService
Public Interface ITextDocumentFactoryService2
Implements ITextDocumentFactoryService
Implements

Remarks

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

Methods

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

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

CreateAndLoadTextDocument(String, IContentType, Boolean, Boolean)

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

(Inherited from ITextDocumentFactoryService)
CreateAndLoadTextDocument(String, IContentType, Encoding, Boolean)

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

(Inherited from ITextDocumentFactoryService)
CreateAndLoadTextDocument(String, IContentType)

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

(Inherited from ITextDocumentFactoryService)
CreateTextDocument(ITextBuffer, String)

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

(Inherited from ITextDocumentFactoryService)
TryGetTextDocument(ITextBuffer, ITextDocument)

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

(Inherited from ITextDocumentFactoryService)

Events

TextDocumentCreated

Occurs when an ITextDocument is created.

(Inherited from ITextDocumentFactoryService)
TextDocumentDisposed

Occurs when an ITextDocument is disposed.

(Inherited from ITextDocumentFactoryService)

Applies to