Back to Devexpress

TextEdit.CanUndo Property

windowsforms-devexpress-dot-xtraeditors-dot-textedit-9a4ab3bd.md

latest1.8 KB
Original Source

TextEdit.CanUndo Property

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
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

Undo()

ContextMenu

TextEdit Class

TextEdit Members

DevExpress.XtraEditors Namespace