Text Suite
457
·
revision marking Returns True if change tracking is in effect.
·
selection mode Returns a value that indicates the current selection mode, as shown in the
following table.
Value
Selection mode
0 (zero)
Normal selection
1
Extended selection ("EXT" appears on the status bar)
2
Column selection. ("COL" appears on the status bar)
·
start of range column number Returns the table column number that contains the beginning of
the text range.
·
start of range row number Returns the table row number that contains the beginning of the
text range.
·
vertical position relative to page Returns the vertical position of the text range; this is the
distance (in twips) from the top edge of the selection to the top edge of the page (20 twips = 1
point, 72 points = 1 inch). If the selection isn't visible in the document window, returns -1.
·
vertical position relative to page boundary Returns the vertical position (in twips) of the text
range relative to the top edge of the nearest text boundary enclosing it (20 twips = 1 point, 72
points = 1 inch). This is useful for determining the position of the insertion point within a frame
or table cell. If the selection isn't visible, returns -1.
·
with in table Returns True if the selection is in a table.
·
zoom percentage Returns the current percentage of magnification as set by the percentage
property of the zoom object.
Example
This example displays the current page number and the total number of pages in the active
document.
display dialog "The selection is on page " & (get range information text ¬
object of selection information type active end page number) & ¬
" of page " & (get range information text object of selection ¬
information type number of pages in document)
If the selection is in a table, this example selects the table.
if (get range information text object of selection information type ¬
with in table) = "True" then select table 1 of selection
This example displays a message that indicates the current section number.
collapse range text object of selection direction collapse start
display dialog "The insertion point is in section " & (get range information ¬
text object of selection information type active end section number)