# HeaderFooterPosition Property

> Sets the distance in twips of a header from the top or a footer from the bottom of the page for the section set with SectionCurrent; default 567 twips (1 cm).

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > HeaderFooterPosition Property
- **437 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterposition-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterposition-property/llms.txt
- **LLMs-Full URL:** 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. For headers, the position value is the distance between the top of the header and the top of the page. For footers, the position value is the distance between the bottom of the footer and the bottom of the page. All values are in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). The default value is 567 [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips) = 1 cm. The [SectionCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt) property determines the section, the header or footer belongs to. The property returns -1, if more than one section is specified through the [SectionCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt) property and these sections' header or footer position are different.

### Syntax

```vbscript
TXTextControl.HeaderFooterPosition(HeaderFooter) [= position]
```

### Parameters

| Parameter | Description |
|---|---|
| HeaderFooter | Specifies the header or footer the position of which is to be set. Valid values are listed in Constants. |

### Constants

Valid values for the HeaderFooter parameter are:

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

### Data Types

| Name | Data type |
|---|---|
| HeaderFooter | Integer |
| Property value | Long |

### Limitations

Run time only.

### See Also

- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/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:** [HeaderFooterDeactivated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterdeactivated-event/llms-full.txt)
- **Next:** [HeaderFooterSelect Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterselect-method/llms-full.txt)
