# HeaderFooter.Type Property

> Gets the type of the header or footer. It is a value of the HeaderFooterType enumeration.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.Type Property
- **734 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/type-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/type-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/type-property/llms-full.txt

---

### Description

Gets the type of the header or footer. It is a value of the [HeaderFooterType](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfootertype/enumeration/llms-full.txt) enumeration.

### Syntax

```csharp
public HeaderFooterType Type { get; }
```

```vbnet
Public ReadOnly Property Type As HeaderFooterType
```

### Members

| Value | Description |
|---|---|
| Header | The object represents a header. When an even header exists the object represents the odd header. Otherwise it represents the header of all pages. |
| FirstPageHeader | The object represents a special header of the document's or section's first page. |
| Footer | The object represents a footer. When an even footer exists the object represents the odd footer. Otherwise it represents the footer of all pages. |
| FirstPageFooter | The object represents a special footer of the document's or section's first page. |
| EvenHeader | The object represents an even header. |
| EvenFooter | The object represents an even footer. |

### Examples

The following example verifies that the retrieved text part is the default header before updating it.

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [HeaderFooter.TrackedChanges Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfooter/trackedchanges-property/llms-full.txt)
- **Next:** [HeaderFooterCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/headerfootercollection/llms-full.txt)
