Leadtools.Windows.Annotations Namespace > AnnAutomation Class : CancelUndo Method |
public virtual void CancelUndo()
'Declaration Public Overridable Sub CancelUndo()
'Usage Dim instance As AnnAutomation instance.CancelUndo()
public virtual void CancelUndo()
function Leadtools.Windows.Annotations.AnnAutomation.CancelUndo()
public: virtual void CancelUndo();
Use this method along with the BeginUndo and EndUndo methods to programmatically add a node to the undo stack maintained by this AnnAutomation object. Typically, you add an undo node as follows:
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.
For C#/VB examples, refer to BeginUndo.
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