(Document and Medical Imaging toolkits)
The LEADTOOLS C API features include an Undo/Redo engine for undoing annotation automation operations. The undo depth determines the number of operations that can be undone. There is only one undo depth value per root container. Subcontainers do not have their own separate values.
LEADTOOLS provides a number of functions for handling the undo capabilities.
To determine the current undo level of the automation handle, call L_AnnGetUndoDepth. To set a new undo depth for the automation handle, call L_AnnSetUndoDepth.
L_AnnUndo undoes the last automation operation performed.
Generally, operations are undone one operation at a time. If the last operation performed cut several objects from a container, undoing that operation would return the objects to the container. Occasionally, it may be best to group several operations, such as object additions or property changes, together so that calling L_AnnUndo undoes the whole group of operations and not just the last operation performed. This can be accomplished by:
Call L_AnnSetUndoDepth to set the number of undo actions that can take place.
Call L_AnnAddUndoNode to add an undo node to the automation object.
Disable the undo feature by calling L_AnnSetAutoUndoEnable (FALSE).
Perform the operations to be combined into one undo.
Re-enable the undo feature by calling L_AnnSetAutoUndoEnable (TRUE).
Now, all three operations can be undone with one call to L_AnnUndo instead of three calls to L_AnnUndo.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
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.