# TextControl.FontUnderlineStyle Property

> Gets or sets the underlining style for the text displayed by the control.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.FontUnderlineStyle Property
- **449 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontunderlinestyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontunderlinestyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontunderlinestyle-property/llms-full.txt

---

### Description

Gets or sets the underlining style for the text displayed by the control.

### Syntax

```csharp
public FontUnderlineStyle FontUnderlineStyle { get; set; }
```

```vbnet
Public Property FontUnderlineStyle As FontUnderlineStyle
```

### Members

| Value | Description |
|---|---|
| None | Text is not underlined. |
| Single | Text is underlined with a single line. |
| Doubled | Text is underlined with a doubled line. |
| SingleWordsOnly | Only the words of the text are underlined with a single line. |
| DoubledWordsOnly | Only the words of the text are underlined with a doubled line. |

### Examples

The following example uses `TextControl.FontUnderlineStyle` to configure font underline style as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly;
Console.WriteLine($"Font Underline Style used by Text Control: {textControl.FontUnderlineStyle}");
```

```vbnet
textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly
Console.WriteLine($"Font Underline Style used by Text Control: {textControl.FontUnderlineStyle}")
```

---

## Nearby

- **Previous:** [TextControl.FontStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontstyle-property/llms-full.txt)
- **Next:** [TextControl.FontWeight Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontweight-property/llms-full.txt)
