Javascript: TXTextControl.FontUnderlineStyle Enumeration
Description
Specifies the style of the underline below a text.
Members
| Member | Description |
|---|---|
| DoubledWordsOnly | Only the words of the text are underlined with a doubled line. |
| Doubled | Text is underlined with a doubled line. |
| SingleWordsOnly | Only the words of the text are underlined with a single line. |
| Single | Text is underlined with a single line. |
| None | Text 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.");
}
);
}