TX Text Control .NET Server

Javascript: InputFormat.getInnerHorizontalFrameLines Method

Method|Introduced in 28.0

Description

Gets a value specifying whether all inner horizontal frame lines are set for the selected text.

Syntax

<void> InputFormat.getInnerHorizontalFrameLines(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives whether all inner horizontal frame lines are set for the selected text.

errorCallback

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

Examples

The following example demonstrates InputFormat.getInnerHorizontalFrameLines in a practical document-editing workflow. It gets a value specifying whether all inner horizontal frame lines are set for the selected text.

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

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