Visual Basic (Declaration) | |
---|---|
Public Overridable Property UndoCapacity As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual int UndoCapacity {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property virtual int get_UndoCapacity(); public: __property virtual void set_UndoCapacity( int value ); |
Return Value
The number of user actions that can be reversed using Undo or re-applied using Redo.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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family