Contains all text frames of a Text Control document or part of the document.

Syntax

TextFrameCollection

Introduced: X18.

Methods

Method Description
addAnchored Creates and inserts a new text frame which is anchored to the specified text position.
addAnchoredAtLocation Inserts a new text frame which is anchored to the specified text position.
addAtFixedPositionInDocument Creates and inserts a new text frame which has a fixed geometrical position in the document.
addAtFixedPositionOnPage Inserts a new image which has a fixed geometrical position in the document.
addInline Inserts a text frame inline, which means that it is treated in the text like a single character.
addWithMouse Inserts a text frame with the built-in mouse interface.
clear Removes all objects from the collection and from the document.
(Inherited from FrameBaseCollection)
elementAt Returns the element at a specified index in the collection.
(Inherited from FrameBaseCollection)
forEach Executes a callback function for each element.
(Inherited from FrameBaseCollection)
getCount Gets the number of elements contained in the collection.
(Inherited from FrameBaseCollection)
getItem Gets the text frame selected by the user or the text frame with the specified identifier.
getItemByName Gets the text frame with the specified name.
remove Removes a text frame from a Text Control document.