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

ITextDocumentFactoryService Interface

 

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

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

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodCreateAndLoadTextDocument(String, IContentType)

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

System_CAPS_pubmethodCreateAndLoadTextDocument(String, IContentType, Boolean, Boolean)

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

System_CAPS_pubmethodCreateAndLoadTextDocument(String, IContentType, Encoding, Boolean)

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

System_CAPS_pubmethodCreateTextDocument(ITextBuffer, String)

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

System_CAPS_pubmethodTryGetTextDocument(ITextBuffer, ITextDocument)

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

NameDescription
System_CAPS_pubeventTextDocumentCreated

Occurs when an ITextDocument is created.

System_CAPS_pubeventTextDocumentDisposed

Occurs when an ITextDocument is disposed.

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

[Import]
ITextDocumentFactoryService factory = null;
Return to top
Show:
© 2016 Microsoft