# HeaderFooterDeactivated Event

> Occurs when a header or footer of the TXTextControl has been deactivated and passes its kind: header, footer, first page or even page; sets SectionCurrent.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > HeaderFooterDeactivated Event
- **330 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterdeactivated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterdeactivated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterdeactivated-event/llms-full.txt

---

Occurs when a header or footer has been deactivated. The [SectionCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt) property receives the number of the section to which the header or footer belongs.

### Syntax

```vbscript
HeaderFooterDeactivated(HeaderFooter)
```

### Parameters

| Parameter | Description |
|---|---|
| HeaderFooter | Specifies the header or footer that has been deactivated. Valid values are listed in Constants. |

### Constants

Valid values for the HeaderFooter parameter are:

| Constant | Description |
|---|---|
| txHeader (1) | A header has been deactivated. |
| txFirstHeader (2) | The special header for the first page has been deactivated. |
| txFooter (4) | A footer has been deactivated. |
| txFirstFooter (8) | The special footer for the first page has been deactivated. |
| txEvenHeader (128) | An even header has been deactivated. |
| txEvenFooter (256) | An even footer has been deactivated. |

### Data Types

| Name | Data type |
|---|---|
| HeaderFooter | Integer |

### See Also

- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/llms-full.txt)
- [HeaderFooterActivated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooteractivated-event/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:** [HeaderFooterConnectedToPrevious Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterconnectedtoprevious-property/llms-full.txt)
- **Next:** [HeaderFooterPosition Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/headerfooterposition-property/llms-full.txt)
