TextEdit.CanUndo Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
public bool CanUndo { get; }
<Browsable(False)>
Public ReadOnly Property CanUndo As Boolean

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