Click or drag to resize

AnnotationUndoManager Class

The AnnotationUndoManager keeps track of annotation changes and allows undo and redo functionality.
Inheritance Hierarchy
SystemObject
  Atalasoft.Annotate.UIAnnotationUndoManager

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class AnnotationUndoManager

The AnnotationUndoManager type exposes the following members.

Constructors
  NameDescription
Public methodAnnotationUndoManager
Creates a new instance of AnnotationUndoManager.
Top
Properties
  NameDescription
Public propertyLevels
Gets or sets the number of undo/redo levels to keep in memory.
Public propertyMerging
Gets a value indicating whether the manager is merging undos added into a single undo action.
Public propertyRedoCount
Gets the number of redos available.
Public propertyRedoDescription
Gets the description string of the redo that will be performed when Redo is called.
Public propertyUndoCount
Gets the number of undos available.
Public propertyUndoDescription
Gets the description string of the undo that will be performed when Undo is called.
Top
Methods
  NameDescription
Public methodAddUndo
Adds an undo to the collection.
Public methodCode exampleBeginUndoMerge
This method puts the AnnotationUndoManager into a collective undo state. All calls to AddUndo(AnnotationUndo) will be collected until the EndUndoMerge(String) method has been called.
Public methodClear
Clears the undo and redo collections.
Public methodCode exampleEndUndoMerge
Exits the collective undo state and stores all actions added since the BeginUndoMerge call as a single undo operation.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRedoDescriptions
Returns a string array of the descriptions in the order which they would be redone. This is useful for displaying a list of items to redo. For displaying only the latest redo description use the RedoDescription method.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUndoDescriptions
Returns a string array of the descriptions in the order which they would be undone. This is useful for displaying a list of items to undo. For displaying only the latest undo description use the UndoDescription method.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRedo
Performs a redo on the collection and raises the RedoRequest event with the AnnotationUndo that was processed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUndo
Performs an undo on the collection and raises the UndoRequest event with the AnnotationUndo that was processed.
Top
Events
  NameDescription
Public eventRedoRequest
Public eventUndoListChanged
Raised when the items in the undo stack have changed.
Public eventUndoRequest
Top
Remarks
In addition to annotation property changes, the undo manager will track adding and removing annotations from a layer. This includes adding and removing LayerAnnotation objects in the LayerCollection.
See Also