# FontUnderline Property

> Returns or sets underline for the selected or complete TXTextControl text, depending on FormatSelection: 0 normal, 1 underlined, 2 a mixed selection.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > FontUnderline Property
- **359 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderline-property/llms-full.txt

---

Returns or sets the underline font style. At design time the property determines the style of the complete text. At runtime the property gets or sets the style of the selected text if the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has been set to True. If the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has been set to False the style setting is made for the complete text.

### Syntax

```vbscript
TXTextControl.FontUnderline [= value]
```

| Setting | Description |
|---|---|
| 0 | Resets the underline font style to normal or indicates that no character is formatted with the underline font style. |
| 1 | Sets all characters to the underline font style or indicates that all characters are formatted with the underline font style. |
| 2 | Indicates that the selection contains a mix of underlined and not underlined characters. This value is only possible at runtime and when the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has been set to True. |

### Data Types

Integer.

### See Also

- [FontName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontname-property/llms-full.txt)
- [FontSize Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontsize-property/llms-full.txt)
- [FontDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontdialog-method/llms-full.txt)
- [FormatSelection Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt)
- [Programming Category: Character Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/character-formatting/llms-full.txt)

---

## Nearby

- **Previous:** [FontStrikethru Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontstrikethru-property/llms-full.txt)
- **Next:** [FontUnderlineStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontunderlinestyle-property/llms-full.txt)
