# Headers and Footers

> Add, activate and select headers and footers in TXTextControl with HeaderFooter, HeaderFooterActivate, HeaderFooterSelect and the page number dialog box.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Headers and Footers
- **669 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/llms-full.txt

---

Headers and footers belong to a document or to one of its sections. The `TXTextControl` members below choose which headers and footers a document or section contains, activate and select them, set their position and style and connect a header or footer to the one of the previous section.

Headers and footers are only visible in page view; the guide page [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/llms-full.txt) shows them in use.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.HeaderFooter`](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. |
| [`TXTextControl.HeaderFooterAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteratinputpos-property/llms-full.txt) | Returns which header or footer owns the current text input position. |
| [`TXTextControl.HeaderFooterConnectedToPrevious`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterconnectedtoprevious-property/llms-full.txt) | This property returns or sets a value specifying whether a header or footer is connected with the header or footer of the previous section. |
| [`TXTextControl.HeaderFooterPosition`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterposition-property/llms-full.txt) | This property specifies the position of a header or footer. |
| [`TXTextControl.HeaderFooterStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterstyle-property/llms-full.txt) | This property determines how headers and footers can be activated and how activated headers and footers appear on the screen. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.HeaderFooterActivate`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivate-method/llms-full.txt) | Activates or deactivates a header or footer. |
| [`TXTextControl.HeaderFooterSelect`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterselect-method/llms-full.txt) | This method determines whether a certain `TXTextControl` property or method manipulates a header or a footer or the main text. |
| [`TXTextControl.PageNumberDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagenumberdialog-method/llms-full.txt) | This method opens a built-in dialog box to set formatting attributes for the specified page number field. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.HeaderFooterActivated`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivated-event/llms-full.txt) | Occurs when a header or footer has been activated. |
| [`TXTextControl.HeaderFooterDeactivated`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterdeactivated-event/llms-full.txt) | Occurs when a header or footer has been deactivated. |

### Related Pages

- [Sections and Pages](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt): sections, page size, margins, columns and page borders.
- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/llms-full.txt): add headers and footers to a document.

---

## Nearby

- **Previous:** [Bullets and Numbered Lists](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/lists/llms-full.txt)
- **Next:** [Sections and Pages](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt)
