# TXDrawingCore.CanUndo Property

> Gets a value indicating whether the user can undo the previous TXDrawingCore operation.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.CanUndo Property
- **306 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/canundo-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/canundo-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/canundo-property/llms-full.txt

---

### Description

Gets a value indicating whether the user can [undo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/undo-method/llms-full.txt) the previous [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/llms-full.txt) operation.

### Syntax

```csharp
public bool CanUndo { get; }
```

```vbnet
Public ReadOnly Property CanUndo As Boolean
```

### Examples

The following example checks can undo before performing the related operation.

```csharp
if (tXDrawingCore.CanUndo)
{
    tXDrawingCore.Undo();
}
```

```vbnet
If tXDrawingCore.CanUndo Then
    tXDrawingCore.Undo()
End If
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TXDrawingCore.CanRedo Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/canredo-property/llms-full.txt)
- **Next:** [TXDrawingCore.Changed Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/txdrawingcore/changed-event/llms-full.txt)
