# HeaderFooterType Enumeration

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > HeaderFooterType Enumeration
- **704 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfootertype/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfootertype/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/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. |
| All | 32911 | Not described in the reference. |

### Examples

The following example selects the Header value from the Header Footer Type enumeration and uses it as a documented workflow choice.

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

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

### See Also

[HeaderFooter.Type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfooter/type-property/llms-full.txt) Property, [HeaderFooterCollection.Add](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfootercollection/add-method/llms-full.txt) Method, [HeaderFooterCollection.GetItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfootercollection/getitem-method/llms-full.txt) Method, [HeaderFooterCollection.Remove](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfootercollection/remove-method/llms-full.txt) Method.

---

## Nearby

- **Previous:** [HeaderFooterEventArgs.HeaderFooter Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/headerfootereventargs/headerfooter-property/llms-full.txt)
- **Next:** [HorizontalAlignment Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/horizontalalignment/enumeration/llms-full.txt)
