DS Server

Javascript: InputFormat.getSupportedUnderlineStyles Method

Method|Introduced in 28.0

Description

Gets an array of all supported underline styles.

Syntax

<void> InputFormat.getSupportedUnderlineStyles(<RequestNumbersCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives an array of all supported underline styles.

errorCallback

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

Examples

The following example demonstrates InputFormat.getSupportedUnderlineStyles in a practical document-editing workflow. It gets an array of all supported underline styles.

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

TXTextControl.inputFormat.getSupportedUnderlineStyles(
    function(result) {
        console.log("get supported underline styles result:", result);
    },
    onTxError
);