# TextControl.UndoActionName Property

> Gets a string that represents the name of the action that will be performed when a call to the Undo method is made. The property's value is null if there is no action that can be undone.

- **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.UndoActionName Property
- **367 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/undoactionname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/undoactionname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/undoactionname-property/llms-full.txt

---

### Description

Gets a string that represents the name of the action that will be performed when a call to the [Undo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/undo-method/llms-full.txt) method is made. The property's value is null if there is no action that can be undone.

### Syntax

```csharp
public string UndoActionName { get; }
```

```vbnet
Public ReadOnly Property UndoActionName As String
```

### Examples

The following example includes the undo action name value in application diagnostics. The field is retained with the operation's other diagnostic context.

```csharp
var fieldValue = TXTextControl.WPF.TextControl.NameProperty;
Console.WriteLine($"Name Property for Text Control: {fieldValue}");
```

```vbnet
Dim fieldValue = TXTextControl.WPF.TextControl.NameProperty
Console.WriteLine($"Name Property for Text Control: {fieldValue}")
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.Undo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/undo-method/llms-full.txt)
- **Next:** [TextControl.UserNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/usernames-property/llms-full.txt)
