# ParagraphFormat Constructor

> Creates a new instance of the ParagraphFormat class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ParagraphFormat Constructor
- **615 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/constructor/llms-full.txt

---

### Description

Creates a new instance of the [ParagraphFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/llms-full.txt) class.

### Syntax

#### ParagraphFormat()

Creates an empty [ParagraphFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/llms-full.txt) object with all properties set to their default values.

```csharp
public ParagraphFormat();
```

```vbnet
Public Sub New()
```

#### ParagraphFormat(HorizontalAlignment)

Creates a new [ParagraphFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/llms-full.txt) object with the specified horizontal alignment. All other properties are set to their default values.

```csharp
public ParagraphFormat(HorizontalAlignment alignment);
```

```vbnet
Public Sub New(alignment As HorizontalAlignment)
```

| Parameter | Description |
|---|---|
| alignment | Specifies one of the [HorizontalAlignment](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/horizontalalignment/enumeration/llms-full.txt) values. The following values are possible:  \| Value \| Meaning \| \| Center \| Text is centered. \| \| Justify \| Text is fully justified. \| \| Left \| Text is left aligned. \| \| Right \| Text is right aligned. \| |
|---|

### Examples

The following example creates a Paragraph Format instance and configures its absolute line spacing setting for a document workflow.

```csharp
ParagraphFormat paragraphFormat = new();
paragraphFormat.AbsoluteLineSpacing = 720;
```

```vbnet
Dim paragraphFormat As New ParagraphFormat()
paragraphFormat.AbsoluteLineSpacing = 720
```

---

## Nearby

- **Previous:** [ParagraphFormat.BottomDistance Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/bottomdistance-property/llms-full.txt)
- **Next:** [ParagraphFormat.Direction Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraphformat/direction-property/llms-full.txt)
