# HeaderFooter.Type Property

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

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

---

### Description

Gets the type of the header or footer. It is a value of the [Web.HeaderFooterType](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/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 checks `HeaderFooter.Type` before continuing the web document workflow.

```csharp
var configuredValue = headerFooter.Type;
Console.WriteLine($"Type used by Header Footer: {configuredValue}");
```

```vbnet
Dim configuredValue = headerFooter.Type
Console.WriteLine($"Type used by Header Footer: {configuredValue}")
```

### Limitations

Read only.

---

## Nearby

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