TXTextControl.ImageCollection.addAnchored method

Inserts a new image 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 images are moved with the text.

Syntax

[JavaScript]
<void> ImageCollection.addAnchored(<string> imageData, <HorizontalAlignment> horizontalAlignment, <integer> textPosition, <ImageInsertionMode> insertionMode);
Parameter Description
imageData

Base64 encoded image data.

horizontalAlignment

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

textPosition

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.

insertionMode

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