DS Server

Javascript: TXTextControl.TextFrameInsertionMode Enumeration

Enumeration|Introduced in 25.0

Description

Determines how a text frame can be inserted in the text.

Members

MemberDescription
AboveTheTextThe text frame is inserted at a certain geometrical location above the text. This means that the text frame overwrites the text.
AsCharacterThe text frame is inserted in the text as a single character.
BelowTheTextThe text frame is inserted at a certain geometrical location below the text. This means that the text overwrites the text frame.
DisplaceCompleteLinesThe text frame is inserted at a certain geometrical location.
DisplaceTextThe 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);