# TextViewGenerator.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 Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > TextViewGenerator.UndoActionName Property
- **483 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/undoactionname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/undoactionname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/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-server/reference/txtextcontrol-servervisualization/textviewgenerator/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 applies bold formatting through the text view generator's selection by using `TextViewGenerator.UndoActionName`.

```csharp
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

Console.WriteLine($"Undo Action Name: {textViewGenerator.UndoActionName}");
Console.WriteLine("Text View Generator is ready for use.");
```

```vbnet
Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection

Console.WriteLine($"Undo Action Name: {textViewGenerator.UndoActionName}")
Console.WriteLine("Text View Generator is ready for use.")
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextViewGenerator.Undo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/undo-method/llms-full.txt)
- **Next:** [TextViewGenerator.UserInput Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/userinput-property/llms-full.txt)
