EndUndoAction Method
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Ends 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.
Syntax
public void EndUndoAction();Public Sub EndUndoAction()Examples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.EndUndoAction.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.EndUndoAction();
Console.WriteLine("Text View Generator is ready for use.");Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.EndUndoAction()
Console.WriteLine("Text View Generator is ready for use.")