# Undo

> Undo and redo user edits in TXTextControl with Undo, Redo, CanUndo and CanRedo, switch the undo buffer with AllowUndo and group steps into undo actions.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Undo
- **425 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/undo/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/undo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/undo/llms-full.txt

---

`TXTextControl` records the user's edits so that they can be undone and redone. The members below switch undo on, test whether an undo or redo is possible, perform it and group several operations into one undo action.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.AllowUndo`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/allowundo-property/llms-full.txt) | Determines whether the undo buffer is active or not. |
| [`TXTextControl.CanRedo`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/canredo-property/llms-full.txt) | Informs whether an operation can be re-done using the [Redo](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/redo-method/llms-full.txt) method. |
| [`TXTextControl.CanUndo`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/canundo-property/llms-full.txt) | Informs whether an operation can be undone using the [Undo](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/undo-method/llms-full.txt) method. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.EndUndoAction`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/endundoaction-method/llms-full.txt) | Defines the end of an undo action. |
| [`TXTextControl.Redo`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/redo-method/llms-full.txt) | This method can be used to redo the last `TXTextControl` operation. |
| [`TXTextControl.StartUndoAction`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/startundoaction-method/llms-full.txt) | Defines the beginning of an undo action. |
| [`TXTextControl.Undo`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/undo-method/llms-full.txt) | This method can be used to undo the last `TXTextControl` operation. |

### Related Pages

- [Clipboard Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/clipboard/llms-full.txt): cut, copy and paste.
- [Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt): selection, input position, mouse and keyboard events.

---

## Nearby

- **Previous:** [Clipboard Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/clipboard/llms-full.txt)
- **Next:** [Printing and Print Preview](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/printing/llms-full.txt)
