DS Server

Javascript: TXTextControl.getDrawingMarkerLines Method

Method|Introduced in 28.0

Description

Gets whether a marker frame is shown around a drawing to indicate its position and size.

Syntax

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

Parameters

ParameterDescription
callback

The callback function that receives the requested value.

errorCallback

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

Examples

The following example demonstrates TXTextControl.getDrawingMarkerLines in a practical document-editing workflow. It gets whether a marker frame is shown around a drawing to indicate its position and size.

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

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