IsUndoEnabled Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. 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. This is a dependency property.
Syntax
public bool IsUndoEnabled { get; set; }Public Property IsUndoEnabled As BooleanExamples
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.");
}textControl.IsUndoEnabled = True
If textControl.IsUndoEnabled Then
Console.WriteLine("Text Control: Is Undo Enabled is enabled.")
End If