Javascript: TXTextControl.setFontUnderlineStyle Method
Description
Sets underlining style for the text displayed by the control. This property only determines the style.
Syntax
<void> TXTextControl.setFontUnderlineStyle(<FontUnderlineStyle> style, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| style | The style for the text displayed by the control. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.setFontUnderlineStyle in a practical document-editing workflow. It sets underlining style for the text displayed by the control. This property only determines the style.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.setFontUnderlineStyle(
TXTextControl.FontUnderlineStyle.Single,
function() {
console.log("set font underline style completed.");
},
onTxError
);