Partilhar via


IDebugDocumentText2

This interface represents a text document.

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

IDebugDocumentText2::GetSize

Retrieves the size of the text at this position in the document.

IDebugDocumentText2::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

See Also

Reference

IDebugDocument2

IDebugDocumentTextEvents2