# Paragraph.FormattingStyle Property

> Gets or sets the paragraph's formatting style. The specified style must be the name of a style contained in the ParagraphStyles collection of a Text Control document.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **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 > Paragraph.FormattingStyle Property
- **432 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/formattingstyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/formattingstyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/formattingstyle-property/llms-full.txt

---

### Description

Gets or sets the paragraph's formatting style. The specified style must be the name of a style contained in the [ParagraphStyles](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/paragraphstyles-property/llms-full.txt) collection of a Text Control document.

### Syntax

```csharp
public string FormattingStyle { get; set; }
```

```vbnet
Public Property FormattingStyle As String
```

### Examples

The following example examines the first paragraph in a short document by using `Paragraph.FormattingStyle`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];

paragraph.FormattingStyle = "Heading 1";
paragraph.Select();
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim paragraph As Paragraph = textControl.Paragraphs(1)

paragraph.FormattingStyle = "Heading 1"
paragraph.Select()
```

---

## Nearby

- **Previous:** [Paragraph.Format Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/format-property/llms-full.txt)
- **Next:** [Paragraph.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/paragraph/length-property/llms-full.txt)
