TextToOffset

Method of IDocumentData

Convert Text Position to Line Offset

Return Value

JavaScript

var pnOffset = DocumentData.TextToOffset(pPosition);

Visual Basic Script

pnOffset = DocumentData.TextToOffset pPosition

C++

long nOffset;
HRESULT hr = DocumentData.TextToOffset(pPosition, &nOffset);