LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

EndUndo Method






Commits the undo node started in this AnnAutomation object. .NET support Silverlight support
Syntax
public virtual void EndUndo()
'Declaration
 
Public Overridable Sub EndUndo() 
'Usage
 
Dim instance As AnnAutomation
 
instance.EndUndo()
public virtual void EndUndo()
 function Leadtools.Windows.Annotations.AnnAutomation.EndUndo()
public:
virtual void EndUndo(); 
Remarks

Use this method along with the BeginUndo and CancelUndo methods to programmatically add a node to the undo stack maintained by this AnnAutomation object. 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 the BeginUndo, EndUndo or CancelUndo methods when calling methods from this AnnAutomation object directly. The AnnAutomation object will internally do this for you. For example, when you call the Delete 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 more information, refer to Undoing WPF Automation Operations.

Example

For C#/VB examples, refer to BeginUndo.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomation Class
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.