BeginUndoAction Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Begins a user-defined undo operation. All editing and fomatting changes made between BeginUndoAction and EndUndoAction belong to the undo operation. These changes are undone or redone in a single step. The specified user-defined name is available with the UndoActionName property.
Syntax
public void BeginUndoAction(string actionName);Public Sub BeginUndoAction(actionName As String)Parameters
| Parameter | Description |
|---|---|
| actionName | Specifies the undo action's name. If an action name is not necessary, this parameter can be null or an empty string. |
Examples
The following example starts a named, compound undo action. The created object is then available to the surrounding document workflow.
textControl.BeginUndoAction("CustomerName");
Console.WriteLine("Text Control is ready for use.");textControl.BeginUndoAction("CustomerName")
Console.WriteLine("Text Control is ready for use.")