Javascript: TXTextControl.getFontUnderlineStyle Method
Description
Gets underlining style for the text displayed by the control. This property only determines the style.
Syntax
<void> TXTextControl.getFontUnderlineStyle(<RequestFontUnderlineStyleCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the set underlining style. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.getFontUnderlineStyle in a practical document-editing workflow. It gets 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.getFontUnderlineStyle(
function(result) {
if (!result) {
console.warn("No font underline style was returned.");
return;
}
console.log("get font underline style result:", result);
},
onTxError
);