IDocumentService Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides functionality to work with documents.
public interface IDocumentService
type IDocumentService = interface
Public Interface IDocumentService
Methods
CloseDocumentAsync(Uri, SaveDocumentOption, CancellationToken) |
Closes the document identified by |
GetOpenDocumentAsync(Uri, CancellationToken) |
Returns the open document corresponding to |
GetOpenDocumentsAsync(CancellationToken) |
Returns a collection of the documents that are currently open. |
InitializeDocumentAsync(DocumentSnapshot, CancellationToken) |
Ensures that a document snapshot is initialized and returns the latest snapshot. A document snapshot may be uninitialized if it is being lazy loaded such as documents in tabs that have not been made visible yet. |
OpenDocumentAsync(Uri, CancellationToken) |
Opens the document identified by |
OpenDocumentAsync(Uri, OpenDocumentOptions, CancellationToken) |
Opens the document identified by |
SaveAllAsync(CancellationToken) |
Saves all open documents that have unsaved changes. |
SaveDocumentAsync(Uri, CancellationToken) |
Saves the document identified by |
SubscribeAsync(IDocumentEventsListener, String, CancellationToken) |
Adds a listener for document events. |