# Javascript: TXTextControl.FontUnderlineStyle Enumeration

> Specifies the style of the underline below a text.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.FontUnderlineStyle Enumeration
- **296 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/fontunderlinestyle-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/fontunderlinestyle-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/fontunderlinestyle-enumeration/llms-full.txt

---

### 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.

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

---

## Nearby

- **Previous:** [Javascript: TXTextControl.focus Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/focus-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.footnotes Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/footnotes-property/llms-full.txt)
