AllowUndo Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property AllowUndo As BooleanExamples
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();textControl.AllowUndo = True
textControl.Update()