IDebugDocumentText2
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
This interface represents a text document.
Syntax
IDebugDocumentText2 : IDebugDocument2
Notes for Implementers
A debug engine (DE) implements this interface when the source code it needs to supply is in text form. Since this is the most typical case, if a DE implements the IDebugDocument2 interface, it should also implement the IDebugDocumentText2
interface.
Notes for Callers
Use the QueryInterface
method to obtain this interface from an IDebugDocument2
interface.
Methods in Vtable Order
In addition to the methods on the IDebugDocument2
interface, this interface implements the following methods:
Method | Description |
---|---|
GetSize | Retrieves the size of the text at this position in the document. |
GetText | Retrieves the text from the specified position in the document. |
Remarks
An object that implements this interface must also implement the IConnectionPointContainer interface, which supplies the IConnectionPoint interface for an IDebugDocumentTextEvents2 object.
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll