Delen via


TextDocument Class

Definition

public ref class TextDocument
public class TextDocument
type TextDocument = class
Public Class TextDocument
Inheritance
TextDocument
Derived

Constructors

TextDocument()

Properties

FilePath

The path to the document file or null if there is no document file.

Folders

The sequence of logical folders the document is contained in.

Id

The document's identifier. Many document instances may share the same ID, but only one document in a solution may have that ID.

Name

The name of the document.

Project

The project this document belongs to.

Methods

GetTextAsync(CancellationToken)

Gets the current text for the document asynchronously.

GetTextVersionAsync(CancellationToken)

Gets the version of the document's text.

TryGetText(SourceText)

Get the current text for the document if it is already loaded and available.

TryGetTextVersion(VersionStamp)

Gets the version of the document's text if it is already loaded and available.

Applies to