LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
UndoCapacity Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomation Class : UndoCapacity Property



The UndoCapacity Property supports WPF/Silverlight.

The UndoCapacity Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets a value that specifies the capacity of the undo/redo buffer. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Overridable Property UndoCapacity As Integer
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim value As Integer
 
instance.UndoCapacity = value
 
value = instance.UndoCapacity
C# 
public virtual int UndoCapacity {get; set;}
C++/CLI 
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.

Example

For C#/VB examples, refer to AnnAutomationManager.

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 WPF Automation Operations.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

UndoCapacity requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.