Recorder Class
Records changed done on an object model and allow to undo and redo them.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Recording.Recorder

Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public sealed class Recorder : INotifyPropertyChanged

The Recorder type exposes the following members.

Constructors
  NameDescription
Public methodRecorder()
Initializes a new instance of the Recorder class.
Public methodRecorder(Object)
Initializes a new instance of the Recorder class and attaches it to a given object.
Top
Properties
  NameDescription
Public propertyCanAddRestorePoint
Determines if the AddRestorePoint(String) method can be invoked.
Public propertyCanRedo
Determines if the Redo() method can be invoked.
Public propertyCanUndo
Determines if the Undo() method can be invoked.
Public propertyMaximumOperationsCount
Gets the maximum number of operations in the UndoOperations and RedoOperations collections. These collections are automatically trimmed so that their size never exceeds MaximumOperationsCount.
Public propertyRedoOperations
Gets the collection of operations that can be redone using the Redo() method.
Public propertyUndoOperations
Gets the collection of operations that can be undone using the Undo() method.
Top
Methods
  NameDescription
Public methodAddOperation
Adds a new Operation to UndoOperations collection of the current Recorder.
Public methodAddRestorePoint
Adds new restore point with given name.
Public methodAttach
Attaches a recordable object (including its descendant objects) to the current Recorder so that changes in this objects start being recorded into the current Recorder.
Public methodClear
Clears undo and redo lists.
Public methodDetach
Detaches a recordable object from the current Recorder, so that changes in this objects stop being recorded into the current Recorder.
Public methodOpenScope(RecordingScopeOption)
Opens an unnamed RecordingScope.
Public methodOpenScope(String, RecordingScopeOption)
Opens a RecordingScope with a given name.
Public methodRedo
Redo last operation.
Public methodRedoTo
redo all operation to specific operation.
Public methodUndo
Undo last operation.
Public methodUndoTo
Undo all operations to specific Operation or RestorePoint.
Top
Events
  NameDescription
Public eventPropertyChanged
Event raised when the value of a property of the current object changes.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also