# TextControl.ParagraphFormat Property

> Gets or sets the paragraph formatting attributes of the text displayed by the control. The property value is an object of the type ParagraphFormat. For more information see the description of the ParagraphFormat class.

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

---

### Description

Gets or sets the paragraph formatting attributes of the text displayed by the control. The property value is an object of the type [ParagraphFormat](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/paragraphformat/llms-full.txt). For more information see the description of the ParagraphFormat class.

### Syntax

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

```vbnet
Public Property ParagraphFormat As ParagraphFormat
```

### Examples

The following example uses `TextControl.ParagraphFormat` to configure paragraph format as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.ParagraphFormat = new ParagraphFormat();
if (textControl.ParagraphFormat != null)
{
    Console.WriteLine("Text Control: Paragraph Format is available.");
}
```

```vbnet
textControl.ParagraphFormat = New ParagraphFormat()
If textControl.ParagraphFormat IsNot Nothing Then
    Console.WriteLine("Text Control: Paragraph Format is available.")
End If
```

---

## Nearby

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