4 Replies Latest reply on May 3, 2011 3:25 AM by andrejusc

    Is there any paragraph property to determine it's location/offset inside a document?

    andrejusc Level 1

      Hi,

       

      If I have loop like this for my document and know that I'll retrieve several paragraphs as a result of findGrep():

       

      var found = doc.findGrep();
      for ( var fIndex = 0 ; fIndex < found.length ; fIndex++ ) {
        var foundParagraph = found[fIndex];

      }

       

      is there any way to determine that inside my document some paragraph (which here wil be as foundParagraph) appears above or below another found paragraph? Should I expect that collection of paragraphs returned by findGrep() method is formed based on there actual location inside a document?

       

      Any help on this would be highly appreciated.