AbsoluteDistance

Method of IDocumentData

Calculate absolute distance between text positions

Return Value

JavaScript

var pnAbsolute = DocumentData.AbsoluteDistance(pStart, pEnd, nLBStyle);

Visual Basic Script

pnAbsolute = DocumentData.AbsoluteDistance pStart, pEnd, nLBStyle

C++

long nAbsolute;
HRESULT hr = DocumentData.AbsoluteDistance(pStart, pEnd, nLBStyle, &nAbsolute);