Provides access to a text-only version of the debug document. This interface uses the following conventions:

  • Both character positions and line numbers are zero based.

  • Character-positions represent character offsets; they do not represent byte or word offsets. For Win32, a character-position is a Unicode offset.

In addition to the methods inherited from IDebugDocument, the IDebugDocumentText interface exposes the following methods.

Methods in Vtable Order

Method Description

IDebugDocumentText::GetDocumentAttributes

Returns the attributes of the document.

IDebugDocumentText::GetSize

Returns the number of lines and number of characters in the document.

IDebugDocumentText::GetPositionOfLine

Returns character-position corresponding to the first character of a line.

IDebugDocumentText::GetLineOfPosition

Returns the line number and, optionally, the character offset within the line that corresponds to the given character-position.

IDebugDocumentText::GetText

Retrieves the characters and/or the character attributes associated with a character-position range.

IDebugDocumentText::GetPositionOfContext

Returns the character-position range corresponding to a document context.

IDebugDocumentText::GetContextOfPosition

Creates a document context object corresponding to the provided character position range.