Skip to main content
A newer version of this page is available. .

TextEditBase.Undo() Method

Undoes the last edit operation in the text control.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public virtual void Undo()

Remarks

If the editor is masked, it stores only one previous value of its content. In this instance, calling the Undo method several times in succession results in switching the editor’s content between the current and the previous values. If the editor is unmasked, multiple previous values can be restored.

An end-user can undo the last edit operation by pressing the CTRL+Z key combination.

See Also