Text Suite
454
Command: get header
Represents a single header. The get header command returns a
header footer
object.
Syntax
get header section Required. An expression that returns a section object.
index enumeration Required. Specifies the header footer object to retrieve. Can be one of the
following: header footer primary, header footer first page, or header footer even pages.
You can also return a single header footer object by using the header footer object property with a
selection object.
Example
The following example changes the text of both the primary header and the primary footer in the
first section of the active document.
set content of text object of (get header section 1 of active document index ¬
header footer primary) to "Header text"
set content of text object of (get footer section 1 of active document index ¬
header footer primary) to "Footer text"
Command: get range information
Returns information about the specified selection or range.
Syntax
get range information text range Required. An expression that returns a text range object.
information type enumeration Required. The information to return. Can be one of the
following:
·
active end adjusted page number Returns the number of the page that contains the active end
of the specified text range. If you set a starting page number or make other manual adjustments,
returns the adjusted page number (unlike active end page number).
·
active end page number Returns the number of the page that contains the active end of the
specified text range, counting from the beginning of the document. Any manual adjustments to
page numbering are disregarded (unlike active end adjusted page number).
·
active end section number Returns the number of the section that contains the active end of
the specified text range.
·
at end of row marker Returns True if the specified text range is at the end-of-row mark in a
table.
·
info caps lock Returns True if Caps Lock is in effect.
·
end_ of range column number Returns the table column number that contains the end of the
specified text range.