# Javascript: TXTextControl.beginUndoAction Method

> Begins a user-defined undo operation. All editing and fomatting changes made between beginUndoAction and endUndoAction belong to the undo operation. These changes are undone or redone in a single step. The specified user-defined name is available via getUndoActionName.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.beginUndoAction Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/#syntax)
- [Parameters](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/#parameters)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/beginundoaction-method/#examples)

---

## Nearby

- **Previous:** [Javascript: TXTextControl.barcodeTypeSettings Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/barcodetypesettings-property/llms.txt)
- **Next:** [Javascript: TXTextControl.BreakType Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/breaktype-enumeration/llms.txt)
