TX Text Control .NET for Windows Forms

AllowUndo Property

Property|Introduced in 11.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.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.

Syntax

public bool AllowUndo { get; set; }

Examples

The following example uses TextControl.AllowUndo to enable undo support for document edits. The change is then applied to the active document or user interface.

textControl.AllowUndo = true;
textControl.Update();