Javascript: FormattingStyle.setUnderline Method
Description
Sets the underlining styles for the style.
Syntax
<void> FormattingStyle.setUnderline(<FontUnderlineStyle> underlineStyle, <EmptyRequestCallback> callback)Parameters
| Parameter | Description |
|---|---|
| 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.");
}
);
}