Note: This topic is for Document/Medical only.
The LEADTOOLS WPF annotation features include an Undo engine for undoing WPF annotation automation operations. The undo depth determines the number of operations that can be undone.
LEADTOOLS provides a number of methods and properties for handling undo capabilities. Whenever an object inside the Container changes either by user interaction through the user interface or by code, the undo/redo buffer changes and the UndoRedoChanged event is fired.
Use the UndoCapacity property to get or set the number of user actions that can be reversed using the Undo method, or re-applied using the Redo method. The default for the UndoCapacity property is 10 actions.
Use the CanUndo and the CanRedo properties to determine whether you can undo or redo an operation. If the CanUndo property returns true you can call the Undo method to undo the last automation operation performed, including changes made to object properties. Likewise, if the CanRedo property returns true you can call the Redo method to redo the last automation operation performed, including changes made to object properties.
When you call a method directly from the AnnAutomation object, the AnnAutomation object internally adds a node to the undo stack it maintains. For example, when you call the Delete method to delete the object(s) currently being edited, the AnnAutomation object will internally add the undo node to the undo stack. You can programmatically add a node to the undo stack maintained by this AnnAutomation object by using the BeginUndo method along with the EndUndo method and the CancelUndo method. To do so, perform the following steps:
Products |
Support |
Feedback: Undoing Wpf Annotation Automation Operations |
Introduction |
Help Version 19.0.2017.6.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.