←Select platform

UndoCapacity Property

Summary

Gets or sets a value that specifies the capacity of the undo/redo buffer.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public virtual int UndoCapacity { get; set; } 
Public Overridable Property UndoCapacity As Integer 
public virtual int UndoCapacity {get; set;} 
@property (nonatomic) NSUInteger undoCapacity; 
public int getUndoCapacity() 
public void setUndoCapacity(int capacity) 
             
 <br/>get_UndoCapacity();<br/>set_UndoCapacity(value);<br/>Object.defineProperty('UndoCapacity');  
public:  
   virtual property Int32 UndoCapacity 
   { 
      Int32 get() 
      void set(Int32 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 information on undoing or redoing automation operations, refer to Undoing Annotation Automation Operations.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly