2019.1

Table Of Contents
Function Description
size() Gets the number of elements in this result set. Equivalent to the
length property.
"tagName()" on
page1255
Returns the HTML tag name of the first element in this result set, in
uppercase. For an example see: "Creating a Table Of Contents" on
page845.
"Example" on
page1255
Replaces the textcontentof an HTML element or of each element in a
set of HTML elements with the supplied value, or returns the text
content of the first element if no value is supplied.
"width()" on
page1256
Gets or sets the outer width of an element, including padding and
borders.
info()
Returns pagination information for one element in the result set (see "results" on page1314) of
a query across all sections in a Print context (see "query(selector)" on page1313).
The returned information is of the type PaginationInfo (see "PaginationInfo" on page1313).
This function can only be used in a Post Pagination Script ; see "Post Pagination Script API" on
page1310.
For an example see: "Creating a Table Of Contents" on page845.
section
The section object can be used to query and modify how the section (and the related context)
will be outputted. It is one of the most important objects in Control Scripts (see "Control Scripts"
on page828 and "Control Script API" on page1280).
Retrieving a section
A section can be retrieved using merge.template.contexts.ContextType.sections["section
name"], for example: merge.template.contexts.PRINT.sections["Section EN"].
Page 1317