# ResetContents Method

> Deletes the complete contents of a TXTextControl, including tables, objects, marked text fields, headers and footers, and returns True when all was deleted.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ResetContents Method
- **126 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/resetcontents-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/resetcontents-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/resetcontents-method/llms-full.txt

---

Deletes the complete contents of a Text Control including tables, objects, marked text fields and headers and footers.

### Syntax

```vbscript
TXTextControl.ResetContents
```

### Return Value

The method returns True, if everything could be deleted, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| Return value | Boolean |

### See Also

- [PDF Export](https://docs.textcontrol.com/tx-text-control-activex/pdf/llms-full.txt)
- [Programming Category: Loading, Saving and Database Support](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [Refresh Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/refresh-method/llms-full.txt)
- **Next:** [ResourceFile Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/resourcefile-property/llms-full.txt)
