# DialogButton.FontStyle Property

> Gets or sets the font style of the text displayed by the DialogButton.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 3.0
- **Namespace:** `TXTextControl.WPF.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.WPF.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > DialogButton.FontStyle Property
- **315 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontstyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontstyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontstyle-property/llms-full.txt

---

### Description

Gets or sets the font style of the text displayed by the DialogButton.

### Syntax

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

```vbnet
Public Property FontStyle As FontStyle
```

### Examples

The following example uses `DialogButton.FontStyle` to configure font style as part of the dialog button workflow. The configured value is checked before the workflow continues.

```csharp
dialogButton.FontStyle = System.Windows.FontStyles.Normal;
Console.WriteLine($"Font Style used by Dialog Button: {dialogButton.FontStyle}");
```

```vbnet
dialogButton.FontStyle = System.Windows.FontStyles.Normal
Console.WriteLine($"Font Style used by Dialog Button: {dialogButton.FontStyle}")
```

---

## Nearby

- **Previous:** [DialogButton.FontSize Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontsize-property/llms-full.txt)
- **Next:** [DialogButton.FontWeight Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontweight-property/llms-full.txt)
