Javascript: TXTextControl.TextFrameInsertionMode Enumeration
Description
Determines how a text frame can be inserted in the text.
Members
| Member | Description |
|---|---|
| AboveTheText | The text frame is inserted at a certain geometrical location above the text. This means that the text frame overwrites the text. |
| AsCharacter | The text frame is inserted in the text as a single character. |
| BelowTheText | The text frame is inserted at a certain geometrical location below the text. This means that the text overwrites the text frame. |
| DisplaceCompleteLines | The text frame is inserted at a certain geometrical location. |
| DisplaceText | The text frame is inserted at a certain geometrical location. |
Examples
The following example uses TXTextControl.TextFrameInsertionMode.AsCharacter (the text frame is inserted in the text as a single character.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textFrames.addWithMouse(TXTextControl.TextFrameInsertionMode.AsCharacter, onTxError);