TX Text Control .NET for WPF

IsUndoEnabled Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating whether the undo buffer is active or not. If a Text Control is used for tasks like generating reports it can be useful to deactivate the undo buffer to save time and memory. This is a dependency property.

Syntax

public bool IsUndoEnabled { get; set; }

Examples

The following example uses TextControl.IsUndoEnabled to configure is undo enabled as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.IsUndoEnabled = true;
if (textControl.IsUndoEnabled)
{
    Console.WriteLine("Text Control: Is Undo Enabled is enabled.");
}