# HeaderFooter Class

> An instance of the Web.HeaderFooter class represents a header or footer in a Text Control document. The Web.HeaderFooter class inherits from the Web.TextPart class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 22.0
- **Namespace:** `TXTextControl.Web`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Inherits:** `TXTextControl.Web.TextPart`
- **Implements:** `TXTextControl.Web.IFormattedText`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > HeaderFooter Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/#members)

---

## In This Section

- [HeaderFooter.Section Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/section-property/llms.txt): Returns the number of the section to which the header or footer belongs. The sections of the document are numbered beginning with 1. This property returns zero, if the header or footer object does not represent a single header or footer.
- [HeaderFooter.Type Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/type-property/llms.txt): Gets the type of the header or footer. It is a value of the Web.HeaderFooterType enumeration.

---

## Nearby

- **Previous:** [FileType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/filetype/enumeration/llms.txt)
- **Next:** [HeaderFooter.Section Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/section-property/llms.txt)
