Inserts a text frame inline, which means that it is treated in the text like a single character. The text frame is inserted at the specified text input position.
<void> TextFrameCollection.addInline(<Size> size, <number> textPosition, [<ErrorCallback> errorCallback], [<RequestTextFrameCallback> callback])
Parameter | Description |
---|---|
size | The text frame's size in twips. |
text |
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. |
error |
Optional. Is called when the operation failed with an error. |
callback | Optional. The newly created text frame object is returned via this callback function. |