Javascript: TXTextControl.ImageCollection.addAnchoredAtLocation method

Inserts a new image which is anchored to the specified text position. It has the specified location relative to the paragraph it is anchored to and a textflow which is given through the insertionMode parameter. Anchored images are moved with the text.


<void> ImageCollection.addAnchoredAtLocation(<string> imageData, <integer> location, <integer> textPosition, <ImageInsertionMode> insertionMode);
Parameter Description

Base64 encoded image data.


Specifies the location, in twips, at which the image is to be inserted. This is a location relative to the top left corner either of a page or of a paragraph.


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


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

See Also