# TXDrawingCore.ClearUndo Method

> Clears the undo buffer of the TXDrawingCore instance.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl.Drawing > TXDrawingCore.ClearUndo Method
- **251 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/clearundo-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/clearundo-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/clearundo-method/llms-full.txt

---

### Description

Clears the undo buffer of the [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/llms-full.txt) instance.

### Syntax

```csharp
public void ClearUndo();
```

```vbnet
Public Sub ClearUndo()
```

### Examples

The following example clears the undo history. The created object is then available to the surrounding document workflow.

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

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

---

## Nearby

- **Previous:** [TXDrawingCore.Changed Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/changed-event/llms-full.txt)
- **Next:** [TXDrawingCore Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/constructor/llms-full.txt)
