# TXDrawingCore.Undo Method

> Undoes the last TXDrawingCore's edit operation.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.Drawing > TXDrawingCore.Undo Method
- **248 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/undo-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/undo-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/undo-method/llms-full.txt

---

### Description

Undoes the last [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/llms-full.txt)'s edit operation.

### Syntax

```csharp
public void Undo();
```

```vbnet
Public Sub Undo()
```

### Examples

The following example reverts the last editing action. The created object is then available to the surrounding document workflow.

```csharp
tXDrawingCore.Undo();
Console.WriteLine("TXDrawing Core is ready for use.");
```

```vbnet
tXDrawingCore.Undo()
Console.WriteLine("TXDrawing Core is ready for use.")
```

---

## Nearby

- **Previous:** [TXDrawingCore.SizeToContent Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/sizetocontent-method/llms-full.txt)
- **Next:** [TXDrawingCore.ViewChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/viewchanged-event/llms-full.txt)
