TX Text Control .NET Server

AllowUndo Property

Property|Introduced in 21.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

Gets or sets a value indicating whether the undo buffer is active or not.

Syntax

public bool AllowUndo { get; set; }

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.AllowUndo.

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

textViewGenerator.AllowUndo = true;
if (textViewGenerator.AllowUndo)
{
    Console.WriteLine("Text View Generator: Allow Undo is enabled.");
}