# HeaderFooterType Enumeration

> Determines the type of a header or footer. The enumeration contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **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)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > HeaderFooterType Enumeration
- **642 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfootertype/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfootertype/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfootertype/enumeration/llms-full.txt

---

### Description

Determines the type of a header or footer. The enumeration contains the following values:

### Syntax

```csharp
[Flags]
public enum HeaderFooterType
```

```vbnet
<Flags>
Public Enum HeaderFooterType
```

### Members

| Member | Value | Description |
|---|---|---|
| Header | 1 | The object is a header. When an even header exists, the object represents the odd header. Otherwise it represents the header of all pages. |
| FirstPageHeader | 2 | The object represents a special header of the document's or section's first page. |
| Footer | 4 | The object is a footer. When an even footer exists, this member represents the odd footer. Otherwise it represents the footer of all pages. |
| FirstPageFooter | 8 | The object represents a special footer of the document's or section's first page. |
| EvenHeader | 128 | The object represents an even header. |
| EvenFooter | 32768 | The object represents an even footer. |

### Examples

The following example selects `Header` and retains that choice for the related document-processing operation.

```csharp
TXTextControl.Web.HeaderFooterType value = TXTextControl.Web.HeaderFooterType.Header;
Console.WriteLine($"Using Header Footer Type: {value}");
```

```vbnet
Dim value As TXTextControl.Web.HeaderFooterType = TXTextControl.Web.HeaderFooterType.Header
Console.WriteLine($"Using Header Footer Type: {value}")
```

### See Also

[Web.HeaderFooter.Type](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/type-property/llms-full.txt) Property.

---

## Nearby

- **Previous:** [HeaderFooter.Type Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/type-property/llms-full.txt)
- **Next:** [IFormattedText Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/iformattedtext/llms-full.txt)
