IDebugDocumentPositionOffset2

Applies to: yesVisual Studio noVisual 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

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

Syntax

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
GetRange Retrieves the range for the current document position.

Remarks

This returns the same information as 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