DS Server

Javascript: TXTextControl.getTextFrameMarkerLines Method

Method|Introduced in 28.0

Description

Gets whether text frames that have no border line are shown with marker lines.

Syntax

<void> TXTextControl.getTextFrameMarkerLines(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives whether text frames that have no border line are shown with marker lines.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates TXTextControl.getTextFrameMarkerLines in a practical document-editing workflow. It gets whether text frames that have no border line are shown with marker lines.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.getTextFrameMarkerLines(
    function(result) {
        if (result) {
            console.log("get text frame marker lines is available.");
        } else {
            console.warn("get text frame marker lines is not available in the current document state.");
        }
    },
    onTxError
);