Skip to main content
Participant
July 29, 2009
Question

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

  • July 29, 2009
  • 1 reply
  • 525 views

Hello,

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 ?

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
July 29, 2009

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.