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.2.dll

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