Error processing SSI file
(Leadtools.Annotations.Automation)

Show in webframe

CancelUndo Method






Cancels the undo node started in this AnnAutomation object.
Syntax
public virtual void CancelUndo()
'Declaration
 
Public Overridable Sub CancelUndo() 
public virtual void CancelUndo()
-(void) cancelUndo;
public void cancelUndo()
 function Leadtools.Annotations.Automation.AnnAutomation.CancelUndo()
Remarks

Use BeginUndo, EndUndo and CancelUndo to programmatically add a node to the undo stack maintained by this AnnAutomation. Typically, you add an undo node as follows:

  1. Call the BeginUndo method before you make any changes to create a new node.

  2. Perform any changes to the AnnAutomation object.

  3. Call the EndUndo method to commit this undo node into the undo stack of the AnnAutomation object.

  4. In case of errors (typically in a catch statement), call the CancelUndo method to remove the node and cancel the operation.

You do not need to manually call BeginUndo, EndUndo or CancelUndo when calling methods from this AnnAutomation object. The AnnAutomation object will internally do this for you. For example, when you call the DeleteSelectedObjects method to delete the object(s) currently being edited, the AnnAutomation object will perform the above sequence internally to add the undo node.

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.

For information on undoing or redoing automation operations, refer to Undoing Annotation Automation Operations.

Example

For an example, refer to BeginUndo.

Requirements

Target Platforms

See Also

Reference

AnnAutomation Class
AnnAutomation Members

Error processing SSI file
  Leadtools.Annotations.Automation requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features