Javascript: TXTextControl.TextFrameCollection.addAnchored method

Inserts a new text frame which is anchored to the specified text position. It has the specified horizontal alignment and a textflow which is given through the insertionMode parameter. Anchored text frames are moved with the text.

Syntax

[JavaScript]
<void> TextFrameCollection.addAnchored(<Size> size, <HorizontalAlignment> horizontalAlignment, <integer> textPosition, <TextFrameInsertionMode> insertionMode);
Parameter Description
size

The text frame's size in twips.

horizontalAlignment

Specifies the text frame's horizontal alignment. It can be one of the HorizontalAlignment values.

textPosition

Specifies the text position at which the text frame is to be inserted. If -1 is specified, the text frame is inserted at the current input position.

insertionMode

Specifies how the text flow is handled. It can be one of the TextFrameInsertionMode values.

See Also