# 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 Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 11.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.UndoActionName Property
- **352 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/undoactionname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/undoactionname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/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-winforms/reference/txtextcontrol/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 displays the name of the edit that would be reverted.

```csharp
if (textControl.CanUndo)
{
    Console.WriteLine($"Next undo action: {textControl.UndoActionName}");
}
```

```vbnet
If textControl.CanUndo Then
    Console.WriteLine($"Next undo action: {textControl.UndoActionName}")
End If
```

### Limitations

Runtime only.

Read only.

---

## Nearby

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