# TextControl.ListFormatDialog Method

> Invokes the built-in dialog box for setting formatting attributes of bulleted and numbered lists.

- **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.ListFormatDialog Method
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/listformatdialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/listformatdialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/listformatdialog-method/llms-full.txt

---

### Description

Invokes the built-in dialog box for setting formatting attributes of bulleted and numbered lists.

### Syntax

```csharp
public DialogResult ListFormatDialog();
```

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

### Return Value

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

### Examples

The following example opens the list format dialog for the text control.

```csharp
var result = textControl.ListFormatDialog();
Console.WriteLine($"List Format Dialog result: {result}");
```

```vbnet
Dim result = textControl.ListFormatDialog()
Console.WriteLine($"List Format Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.ListFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/listformat-property/llms-full.txt)
- **Next:** [TextControl.Load Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/load-method/llms-full.txt)
