OffsetToText

Method of IDocumentData

Convert Line Offset to Text Position

Return Value

JavaScript

var ppPosition = DocumentData.OffsetToText(nLine, nPos);

Visual Basic Script

ppPosition = DocumentData.OffsetToText nLine, nPos

C++

CComPtr<IPosition> pPosition;
HRESULT hr = DocumentData.OffsetToText(nLine, nPos, &pPosition);