Represents a text file open in the editor.
Assembly: EnvDTE (in EnvDTE.dll)
Thetype exposes the following members.
|DTE||Gets the top-level extensibility object.|
|EndPoint||Gets a TextPoint object that is the location of the end of the document.|
|IndentSize||Infrastructure. Microsoft Internal Use Only.|
|Language||Infrastructure. Microsoft Internal Use Only.|
|Parent||Gets the immediate parent object of a object.|
|Selection||Gets an object representing the current selection on the object.|
|StartPoint||Gets the TextPoint object representing the beginning of the text document, or the first displayed character of the pane.|
|TabSize||Infrastructure. Microsoft Internal Use Only.|
|Type||Infrastructure. Microsoft Internal Use Only.|
|ClearBookmarks||Removes all unnamed bookmarks in the text document.|
|CreateEditPoint||Creates an EditPoint object at the specified location and returns it. The default location is the beginning of the document.|
|MarkText||Indicates whether or not the indicated text was found in the text document and creates unnamed bookmarks wherever matching text is found.|
|PrintOut||Infrastructure. Microsoft Internal Use Only.|
|ReplacePattern||Replaces matching text throughout an entire text document.|
|ReplaceText||Infrastructure. Microsoft Internal Use Only.|
The object is based on the Visual C++ version 6.0 Document object.
In Visual C++ version 6.0, the properties and methods of the object were a superset of the Document object. In Visual Studio, however, Document has all the methods and properties that were part of in Visual C++ version 6.0. In Visual Studio, has only text-specific methods. The reason this does not break old code is that all methods that returned a object in Visual C++ version 6.0 now return a Document object. So, old code that expects a object actually uses a Document object.