TX Text Control .NET Server

Javascript: FormattingStyle.setUnderline Method

Method|Introduced in 28.0

Description

Sets the underlining styles for the style.

Syntax

<void> FormattingStyle.setUnderline(<FontUnderlineStyle> underlineStyle, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
underlineStyle

The underlining styles for the style.

callback

Is called when the operation completed.

Examples

The following example demonstrates FormattingStyle.setUnderline in a practical document-editing workflow. It sets the underlining styles for the style.

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