GetParagraphPosition()

For a Text object named myText, to get the position of the second paragraph within the Text object, use the following syntax:

var ParaPos = myText.GetParagraphPosition(1); // 0 based index
Debug.trace( "Paragraph 2 – left = " + ParaPos.left + ", right = " + ParaPos.right + ", top = " + ParaPos.top + ", bottom = " + ParaPos.bottom );

Close