# Undo Method

> Undoes the last operation performed in the TXTextControl and returns True when the undo operation was successful, otherwise False. See Redo.

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

---

This method can be used to undo the last Text Control operation.

### Syntax

```vbscript
TXTextControl.Undo
```

### Return Value

The method returns True if the undo operation was successful. Otherwise it returns False.

### Data Types

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

### See Also

- [Redo Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/redo-method/llms-full.txt)
- [CanUndo Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/canundo-property/llms-full.txt)
- [CanRedo Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/canredo-property/llms-full.txt)
- [Programming Category: Undo](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/undo/llms-full.txt)

---

## Nearby

- **Previous:** [TrackedChangeUserName Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/trackedchangeusername-property/llms-full.txt)
- **Next:** [UserNames Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/usernames-property/llms-full.txt)
