DS Server

Javascript: TXTextControl.FontUnderlineStyle Enumeration

Enumeration|Introduced in 26.0

Description

Specifies the style of the underline below a text.

Members

MemberDescription
DoubledWordsOnlyOnly the words of the text are underlined with a doubled line.
DoubledText is underlined with a doubled line.
SingleWordsOnlyOnly the words of the text are underlined with a single line.
SingleText is underlined with a single line.
NoneText is not underlined.

Examples

The following example uses TXTextControl.FontUnderlineStyle.Single (text is underlined with a single line.) in a document-editing workflow.

function applyFontUnderlineStyle(formattingStyle) {
    formattingStyle.setUnderline(
        TXTextControl.FontUnderlineStyle.Single,
        function() {
            console.log("set underline completed.");
        }
    );
}

Further Reading

  • Word Processing Basics: Using Style Sheets –