# HeaderFooterConnectedToPrevious Property

> Returns or sets whether a header or footer of the section set with SectionCurrent is connected to the previous section's, so both always have the same contents.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > HeaderFooterConnectedToPrevious Property
- **343 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterconnectedtoprevious-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterconnectedtoprevious-property/llms.txt
- **LLMs-Full URL:** 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. If headers or footers are connected, they have always the same contents. 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.

Introduced: 14.0.

### Syntax

```vbscript
TXTextControl.HeaderFooterConnectedToPrevious(HeaderFooter) [= value]
```

### Parameters

| Parameter | Description |
|---|---|
| HeaderFooter | Specifies the kind of the header or footer. 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 | Boolean |

### 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:** [HeaderFooterAtInputPos Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteratinputpos-property/llms-full.txt)
- **Next:** [HeaderFooterDeactivated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterdeactivated-event/llms-full.txt)
