# HeaderFooter Property

> Sets which headers and footers a document or section contains: header, footer, first page and even page headers and footers; values can be added together.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > HeaderFooter Property
- **367 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooter-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooter-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooter-property/llms-full.txt

---

This property determines which kind of headers and/or footers the document or a section contains. Headers and footers are only displayed, if the [ViewMode](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/viewmode-property/llms-full.txt) property has been set to **Page View**. The [SectionCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt) property determines the part of the document. Using this property, a header or footer is not automatically activated. The [HeaderFooterActivate](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivate-method/llms-full.txt) method or the built-in mouse interface can be used to activate a header or footer.

### Syntax

```vbscript
TXTextControl.HeaderFooter [= HeadersFooters]
```

| Setting | Description |
|---|---|
| txHeader (1) | Inserts a header. |
| txFirstHeader (2) | Inserts a special header for the first page. |
| txFooter (4) | Inserts a footer. |
| txFirstFooter (8) | Inserts a special footer for the first page. |
| txEvenHeader (128) | Inserts an even header. |
| txEvenFooter (256) | Inserts an even footer. |

### Data Types

Integer.

### Limitations

Run time only.

### Remarks

The property value can be the sum of one or more of the specified settings.

### See Also

- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/llms-full.txt)
- [HeaderFooterActivate Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivate-method/llms-full.txt)
- [HeaderFooterStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterstyle-property/llms-full.txt)
- [Programming Category: Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/llms-full.txt)

---

## Nearby

- **Previous:** [GrowFont Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/growfont-method/llms-full.txt)
- **Next:** [HeaderFooterActivate Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivate-method/llms-full.txt)
