GetParagraphPosition

Syntax:

textObject.GetParagraphPosition( Index )

Return:

A new object with four properties: the left, right, top and bottom co-ordinates of the given paragraph.

Note:
If the given paragraph does not exist, the left and right members are both set to the left co-ordinate of the text object, and the top and bottom members are both set to the top co-ordinate of the text object.

Parameter:

Index – the number of the paragraph to get the position information for. This index is zero based, so the first paragraph is 0, the second is 1, etc.

Remarks:

This function obtains the current display position of a specified paragraph in a Text object.

image\Script_Button.jpgExamples