TX Text Control .NET for Windows Forms

ClearUndo Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Clears the undo buffer of the Text Control.

Syntax

public void ClearUndo();

Examples

The following example clears the undo history. The created object is then available to the surrounding document workflow.

textControl.ClearUndo();
Console.WriteLine("Text Control is ready for use.");