The DocumentTargetCollection contains a collection of targets.

Syntax

DocumentTargetCollection

Introduced: X18.

Methods

Method Description
add Adds a new document target to the collection.
clear Removes all document targets from the collection.
elementAt Returns the element at a specified index in the collection.
(Inherited from Collection)
forEach Executes a callback function for each element.
(Inherited from Collection)
getCanAdd Gets a value indicating whether a new document target can be inserted at the current input position.
getCount Gets the number of elements contained in the collection.
(Inherited from Collection)
getItem Gets the document target at the current text input position or the document target with the specified id.
remove Removes the target from the collection.