L_AutGetUndoLevel

Summary

Gets the undo level for the specified automation handle.

Syntax

#include "ltaut.h"

L_LTAUT_API L_INT L_AutGetUndoLevel(pAutomation, puLevel)

Parameters

pAUTOMATIONHANDLE pAutomation

Pointer to the automation handle.

L_UINT * puLevel

A pointer to a variable to be updated with the undo level. The undo level is an integer value that represents the maximum number of undo operations that can be performed in each container associated with the automation handle. The default value is DEF_AUTOMATION_UNDO_LEVEL [16].

Returns

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

Comments

The undo level determines the number of automation operations that can be done within an automation container. The default value is DEF_AUTOMATION_UNDO_LEVEL [16]. If the undo level is set to 16, then each container associated with the automation handle has an undo level of 16.

To change the undo level call L_AutSetUndoLevel.

To undo an automation operation, call L_AutUndo.

To determine whether an automation operation can be undone, call L_AutCanUndo.

For information about grouping multiple operations into a single undo process, refer to L_AutAddUndoNode.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_AutSetUndoLevel.

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

LEADTOOLS Container and Automation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.