# TextFrame.Paragraphs Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > TextFrame.Paragraphs Property
- **461 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/paragraphs-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/paragraphs-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/paragraphs-property/llms-full.txt

---

### Description

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

### Syntax

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

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

### Examples

The following example applies bold formatting through the text frame's selection by using `TextFrame.Paragraphs`.

```csharp
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;

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

```vbnet
Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFrame.MisspelledWords Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/misspelledwords-property/llms-full.txt)
- **Next:** [TextFrame.Selection Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/selection-property/llms-full.txt)
