Text Suite
469
Syntax
navigate text range Required. An expression that returns a text range object.
to enumeration Required. The item that the specified text range is to be moved to. Can be one of
the following : goto a bookmark item, goto a comment item, goto an endnote item, goto an
equation, goto a field item, goto a footnote item, goto a grammatical error, goto a graphic,
goto a heading item, goto a line item, goto an object, goto a page item, goto a percent item,
goto a proofreading error, goto a section item, goto a spelling error, or goto a table item.
[position enumeration] Optional. The type of navigation to be performed. Can be one of the
following: the first item, the last item, the next item, relative, the previous item, or absolute.
[count integer] Optional. The number of items by which to navigate. The default value is one.
[name Unicode text] Optional. If the to argument is goto a bookmark item, goto a comment
item, goto a field item, or goto an object, this argument specifies a name.
Example
This example moves the insertion point to the first cell in the next table.
navigate text object of selection to goto a table item position the next item
This example moves the insertion point just before the fifth endnote reference mark in the active
document.
if (count of endnotes of active document) 5 then
navigate text object of selection to goto an endnote item ¬
position absolute count 5
end if
This example sets
R1
equal to the first footnote reference mark in the active document.
if (count of footnotes of active document) 1 then
set R1 to navigate text object of active document to goto a footnote item ¬
position the first item
end if
This example moves the insertion point down four lines.
navigate text object of selection to goto a line item position relative ¬
count
4
Command: next paragraph
Returns the next paragraph as a paragraph object.
Syntax
next paragraph paragraph Required. An expression that returns a paragraph object.
Example
This example selects the paragraph following the current selection.
select (next paragraph paragraph 1 of selection)