LAnnAutomation::Undo

#include "ltwrappr.h"

virtual L_INT LAnnAutomation::Undo(uLevels=1)

Reverses the last user action that was executed using the automated annotation functions.

Parameters

L_UINT uLevels

Number of undo operations to be done.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function can be used repeatedly to reverse the number of actions specified by the LAnnAutomation::SetUndoDepth function. When the stack is empty, it returns an error.

There is only one undo depth value per root container. (Subcontainers do not have their own separate values.)

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

This example reverses the last user action in automation
mode.

L_INT LAnnAutomation_UndoExample(LAnnAutomation  * pAnnAutomation) 
{ 
    return pAnnAutomation->Undo();  
} 

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help