# TextControl.FontStyle Property

> Gets or sets the font style of the text control. This is a dependency property. The property value has the type System.Windows.FontStyle. The default value is FontStyles.Normal.

- **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.FontStyle Property
- **338 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontstyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontstyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontstyle-property/llms-full.txt

---

### Description

Gets or sets the font style of the text control. This is a dependency property. The property value has the type `System.Windows.FontStyle`. The default value is `FontStyles.Normal`.

### Syntax

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

```vbnet
Public Property FontStyle() As FontStyle
```

### Examples

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

```csharp
textControl.FontStyle = System.Windows.FontStyles.Normal;
Console.WriteLine($"Font Style used by Text Control: {textControl.FontStyle}");
```

```vbnet
textControl.FontStyle = System.Windows.FontStyles.Normal
Console.WriteLine($"Font Style used by Text Control: {textControl.FontStyle}")
```

---

## Nearby

- **Previous:** [TextControl.FontSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontsize-property/llms-full.txt)
- **Next:** [TextControl.FontUnderlineStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/fontunderlinestyle-property/llms-full.txt)
