This documentation is archived and is not being maintained.

TextDocument Members

Represents a text file open in the editor, such as the Visual Studio Code editor.

The following tables list the members exposed by the TextDocument type.

  Name Description
Public property DTE Gets the top-level extensibility object. 
Public property EndPoint Gets a TextPoint object that is the location of the end of the document. 
Public property IndentSize Microsoft Internal Use Only. 
Public property Language Microsoft Internal Use Only. 
Public property Parent Gets the immediate parent object of a TextDocument object. 
Public property Selection Gets an object representing the current selection on the TextDocument object. 
Public property StartPoint Gets the TextPoint object representing the beginning of the text document, or the first displayed character of the pane. 
Public property TabSize Microsoft Internal Use Only. 
Public property Type Microsoft Internal Use Only. 
Top

  Name Description
Public method ClearBookmarks Removes all unnamed bookmarks in the text document.  
Public method CreateEditPoint Creates an EditPoint object at the specified location and returns it. The default location is the beginning of the document.  
Public method MarkText Indicates whether or not the indicated text was found in the text document and creates unnamed bookmarks wherever matching text is found.  
Public method PrintOut Microsoft Internal Use Only.  
Public method ReplacePattern Replaces matching text throughout an entire text document.  
Public method ReplaceText Microsoft Internal Use Only.  
Top
Show: