Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TextEditBase.Undo() Method

In This Article

Undoes the last edit operation in the text control.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: 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