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

TextEdit.CanUndo Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public bool CanUndo { get; }

#Property Value

Type Description
Boolean

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

#Remarks

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