# TextControl.FormattingStylesDialog Method

> Invokes the built-in dialog box for creating, deleting and modifying formatting styles.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **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.FormattingStylesDialog Method
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylesdialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylesdialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylesdialog-method/llms-full.txt

---

### Description

Invokes the built-in dialog box for creating, deleting and modifying formatting styles.

### Syntax

```csharp
public DialogResult FormattingStylesDialog();
```

```vbnet
Public Function FormattingStylesDialog() As DialogResult
```

### Return Value

If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.

### Examples

The following example opens the formatting styles dialog for the text control.

```csharp
var result = textControl.FormattingStylesDialog();
Console.WriteLine($"Formatting Styles Dialog result: {result}");
```

```vbnet
Dim result = textControl.FormattingStylesDialog()
Console.WriteLine($"Formatting Styles Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.FormattingStyleListChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formattingstylelistchanged-event/llms-full.txt)
- **Next:** [TextControl.FormFieldCheckChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/formfieldcheckchanged-event/llms-full.txt)
