|Boolean||A boolean expression that indicates whether the last edit operation can be undone.|
You can use the CanUndo property just before doing an undo operation by code. Also, the CanUndo property can be used to update your menu, button. The CanRedo property determines if the redo queue contains any actions. Use the AllowUndoRedo property to enable undo/redo support. Use the Undo method to undo the last edit-control operation.