UndoActionName Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
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.
Syntax
public string UndoActionName { get; }Public ReadOnly Property UndoActionName As StringExamples
The following example displays the name of the edit that would be reverted.
if (textControl.CanUndo)
{
Console.WriteLine($"Next undo action: {textControl.UndoActionName}");
}If textControl.CanUndo Then
Console.WriteLine($"Next undo action: {textControl.UndoActionName}")
End IfLimitations
Runtime only.
Read only.