TX Text Control .NET Server

EndUndoAction Method

Method|Introduced in 23.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as 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();

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.");