Share via


IDebugDocumentPositionOffset2

Represents a position in a source file as a character offset.

IDebugDocumentPositionOffset2 : IUnknown

Notes for Implementers

Implemented by the IDE and consumed by debug engines.

Methods

The following table shows the methods of IDebugDocumentPositionOffset2.

Method

Description

IDebugDocumentPositionOffset2::GetRange

Retrieves the range for the current document position.

Remarks

This returns the same information as IDebugDocumentPosition2::GetRange but in char offsets from the beginning of the document. This presents the document like it would exist on a disk, that is, a one-dimensional array of characters, instead of the line and column information that is ordinarily returned.

Requirements

Header: Msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugDocumentPosition2