LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

UndoCapacity Property






Gets or sets a value that specifies the capacity of the undo/redo buffer.
Syntax
public virtual int UndoCapacity {get; set;}
'Declaration
 
Public Overridable Property UndoCapacity As Integer
'Usage
 
Dim instance As AnnAutomation
Dim value As Integer
 
instance.UndoCapacity = value
 
value = instance.UndoCapacity
public virtual int UndoCapacity {get; set;}
 get_UndoCapacity();
set_UndoCapacity(value);
public:
virtual property int UndoCapacity {
   int get();
   void set (    int value);
}

Property Value

The number of user actions that can be reversed using Undo or re-applied using Redo.
Remarks

The AnnAutomation class keeps an internal undo/redo buffer. This internal buffer is updated automatically whenever the user changes objects inside the Container property.

The UndoCapacity property specifies the maximum number of items that are held inside this internal buffer. The default is set at 10. For example, if this buffer has a value of 10, the last 10 reversible operations will be saved in the buffer. Once the internal buffer capacity is reached, each new operation causes the operation at the bottom of the buffer to be removed.

Setting an UndoCapacity of 0 disables the undo/redo functionality for this AnnAutomation object.

For more information, refer to Undoing Automation Operations.

Example
For an example, refer to AnnAutomationManager.
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.