# HeaderFooter.Paragraphs Property

> Gets a collection of all paragraphs the header or footer contains. 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.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 WPF > Reference > TXTextControl > HeaderFooter.Paragraphs Property
- **598 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/paragraphs-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/paragraphs-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/paragraphs-property/llms-full.txt

---

### Description

Gets a collection of all paragraphs the header or footer contains. 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 creates a header for the first section and configures its content or layout by using `HeaderFooter.Paragraphs`.

```csharp
HeaderFooterCollection headers = textControl.Sections[1].HeadersAndFooters;
headers.Add(HeaderFooterType.Header);
HeaderFooter headerFooter = headers.GetItem(HeaderFooterType.Header);
headerFooter.Selection.Text = "Quarterly report";

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

```vbnet
Dim headers As HeaderFooterCollection = textControl.Sections(1).HeadersAndFooters
headers.Add(HeaderFooterType.Header)
Dim headerFooter As HeaderFooter = headers.GetItem(HeaderFooterType.Header)
headerFooter.Selection.Text = "Quarterly report"

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [HeaderFooter.PageNumberFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/pagenumberfields-property/llms-full.txt)
- **Next:** [HeaderFooter.SectionNumber Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/sectionnumber-property/llms-full.txt)
