Click or drag to resize

TextDocument Class



Inheritance Hierarchy

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class TextDocument

The TextDocument type exposes the following members.

Constructors
  NameDescription
Protected methodTextDocument
Initializes a new instance of the TextDocument class
Top
Properties
  NameDescription
Public propertyFilePath
The path to the document file or null if there is no document file.
Public propertyFolders
The sequence of logical folders the document is contained in.
Public propertyId
The document's identifier. Many document instances may share the same ID, but only one document in a solution may have that ID.
Public propertyName
The name of the document.
Public propertyProject
The project this document belongs to.
Top
Methods
  NameDescription
Public methodGetTextAsync
Public methodGetTextVersionAsync
Public methodTryGetText
Get the current text for the document if it is already loaded and available.
Public methodTryGetTextVersion
Gets the version of the document's text if it is already loaded and available.
Top
See Also