Skip to main content

TextEdit.CanUndo Property

Gets a value indicating whether the previous edit operation can be undone.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public bool CanUndo { get; }

Property Value

Type Description

true if the previous edit operation can be undone; otherwise, false.


The CanUndo property can provide the enabled state of a control (or menu item) used to perform the undo operation for this editor. The TextEdit.Undo method should be used to perform the operation.

Note: text editors provide a built-in context menu that contains the ‘Undo‘ item. This menu is disabled when assigning a custom context menu to the RepositoryItem.ContextMenu property.

See Also