ImageGear for C and C++ on Windows v19.6 - Updated
Manage Undo History
User Guide > How to Work with... > Annotations > New Annotation API: ArtX > How to... > Manage Annotations > Manage Undo History

All undo records are managed by the ARTX component in an undo actions list.

To use the Undo functionality, it is necessary to enable it first; use IG_ARTX_page_undo_enable to toggle this functionality. Use IG_ARTX_page_undo_is_enabled to determine if the Undo/Redo functionality is enabled.

When enabled, the history will record the following ArtX editing operations:

Recording of undo history may be a memory consuming operation. Use IG_ARTX_page_undo_action_enable to control which ArtX operations are recorded in the history to allow undo. The function to query which ArtX operations will be recorded is IG_ARTX_page_undo_action_is_enabled.

To get the number of undo records in the undo actions list, call the IG_ARTX_page_undo_count function. To clear the undo actions list, call the IG_ARTX_page_undo_clear function.

To perform an undo operation on an ArtX page call IG_ARTX_page_undo. This will undo the last annotation operation performed to the page. Successive calls will work backwards on the undo actions list until it is empty.