# ServerTextControl.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 Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > ServerTextControl.ParagraphFormat Property
- **351 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/paragraphformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/paragraphformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/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-server/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 centers the current paragraph by updating the control's paragraph format.

```csharp
ParagraphFormat format = textControl.ParagraphFormat;
format.Alignment = TXTextControl.HorizontalAlignment.Center;
textControl.ParagraphFormat = format;
```

```vbnet
Dim format As ParagraphFormat = textControl.ParagraphFormat
format.Alignment = TXTextControl.HorizontalAlignment.Center
textControl.ParagraphFormat = format
```

---

## Nearby

- **Previous:** [ServerTextControl.PageUnit Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/pageunit-property/llms-full.txt)
- **Next:** [ServerTextControl.Paragraphs Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/paragraphs-property/llms-full.txt)
