# TextControl.IsUndoEnabled Property

> Gets or sets a value indicating whether the undo buffer is active or not. If a Text Control is used for tasks like generating reports it can be useful to deactivate the undo buffer to save time and memory. This is a dependency property.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.IsUndoEnabled Property
- **390 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/isundoenabled-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/isundoenabled-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/isundoenabled-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the undo buffer is active or not. If a Text Control is used for tasks like generating reports it can be useful to deactivate the undo buffer to save time and memory. This is a dependency property.

### Syntax

```csharp
public bool IsUndoEnabled { get; set; }
```

```vbnet
Public Property IsUndoEnabled As Boolean
```

### Examples

The following example uses `TextControl.IsUndoEnabled` to configure is undo enabled as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.IsUndoEnabled = true;
if (textControl.IsUndoEnabled)
{
    Console.WriteLine("Text Control: Is Undo Enabled is enabled.");
}
```

```vbnet
textControl.IsUndoEnabled = True
If textControl.IsUndoEnabled Then
    Console.WriteLine("Text Control: Is Undo Enabled is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextControl.IsTrackChangesEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/istrackchangesenabled-property/llms-full.txt)
- **Next:** [TextControl.Landscape Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/landscape-property/llms-full.txt)
