# ServerTextControl.FontUnderlineStyle Property

> Gets or sets underlining style for the text displayed by the control. This property only determines the style. The ServerTextControl.Font property determines whether text is underlined or not.

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

---

### Description

Gets or sets underlining style for the text displayed by the control. This property only determines the style. The [ServerTextControl.Font](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/font-property/llms-full.txt) property determines whether text is underlined or not.

### 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 `ServerTextControl.FontUnderlineStyle` to configure font underline style as part of the server text control workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [ServerTextControl.FontSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/fontsettings-property/llms-full.txt)
- **Next:** [ServerTextControl.FootnoteCreated Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/footnotecreated-event/llms-full.txt)
