# TextControl.ParagraphFormatDialog Method

> Invokes the built-in dialog box for setting the formatting attributes of a paragraph.

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

---

### Description

Invokes the built-in dialog box for setting the formatting attributes of a paragraph.

### Syntax

#### ParagraphFormatDialog()

Opens the dialog box showing the last opened tab.

```csharp
public DialogResult ParagraphFormatDialog();
```

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

#### ParagraphFormatDialog(int)

Opens the dialog box showing the specified tab.

```csharp
public DialogResult ParagraphFormatDialog(int activeTab);
```

```vbnet
Public Function ParagraphFormatDialog(activeTab As Integer) As DialogResult
```

| Parameter | Description |
|---|---|
| activeTab | Specifies the index of the tab, zero-based, that is displayed when the tabbed dialog box is opened. If this parameter is 0, the dialog box shows the tab for setting alignment, line spacing, indentation and Distances, and if this parameter is 1, the dialog box shows the tab for setting a frame and pagination. |

### 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 paragraph format dialog for the text control.

```csharp
var result = textControl.ParagraphFormatDialog(10);
Console.WriteLine($"Paragraph Format Dialog result: {result}");
```

```vbnet
Dim result = textControl.ParagraphFormatDialog(10)
Console.WriteLine($"Paragraph Format Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.ParagraphFormatChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/paragraphformatchanged-event/llms-full.txt)
- **Next:** [TextControl.Paragraphs Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/paragraphs-property/llms-full.txt)
