Stay organized with collectionsSave and categorize content based on your preferences.
Range
A range of elements in a document. The user's selection is represented as aRange, among
other uses. Scripts can only access the selection of the user who is running the script, and only
if the script isboundto the document.
Gets all elements that the user has selected in the open instance of the document, including
any partially selectedTextelements.
Detailed documentation
getRangeElements()
Gets all elements in thisRange, including any partialTextelements (for example, in the case
of a selection that includes only part of aTextelement). To determine whether aTextelement is only partially included in the range, seeRangeElement.isPartial().
Return
RangeElement[]— an array of elements, in the order they appear in the document
Authorization
Scripts that use this method require authorization with one or more of the followingscopes: