1 Reply Latest reply on Jul 29, 2009 4:19 AM by [Jongware]

    [CS2][JS] : Cells.item(i).lines.length and TextFrames.overflows ?

    dave mil



      I have an overflows textFrame that contains a table. I want to get the lines number of each cell.

      cells.item(i).lines.length = only visible text.


      Have you an idea ?

        • 1. Re: [CS2][JS] : Cells.item(i).lines.length and TextFrames.overflows ?
          [Jongware] Most Valuable Participant

          I think the lines value exclusively returns the number of formatted lines, and overset text is not formatted into lines and paragraphs. This makes sense, because overset text has no 'width' ID can use to calculate line breaks.


          If you need the exact number of lines, you will have to temporary increase the row height until all is visible, grab the number of lines, then restore the row height. Then subtract the actual number of lines to see how many were overset.