# ServerTextControl.Paragraphs Property

> Gets a collection of all paragraphs contained in the main text of the document. The property value is an object of the type ParagraphCollection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 for WPF > Reference > TXTextControl > ServerTextControl.Paragraphs Property
- **340 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/paragraphs-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/paragraphs-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/paragraphs-property/llms-full.txt

---

### Description

Gets a collection of all paragraphs contained in the main text of the document. The property value is an object of the type [ParagraphCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/paragraphcollection/llms-full.txt).

### Syntax

```csharp
public ParagraphCollection Paragraphs { get; }
```

```vbnet
Public ReadOnly Property Paragraphs As ParagraphCollection
```

### Examples

The following example iterates through the paragraphs collection and processes each paragraph.

```csharp
foreach (Paragraph paragraph in textControl.Paragraphs)
{
    Console.WriteLine(paragraph.FormattingStyle);
}
```

```vbnet
For Each paragraph As Paragraph In textControl.Paragraphs
    Console.WriteLine(paragraph.FormattingStyle)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.ParagraphFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/paragraphformat-property/llms-full.txt)
- **Next:** [ServerTextControl.ParagraphStyles Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/paragraphstyles-property/llms-full.txt)
