Click or drag to resize
DigitalRuneUndoBufferAdd Method
Adds an operation to the undo buffer.

Namespace: DigitalRune.Undo
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public void Add(
	IUndoableOperation operation
)

Parameters

operation
Type: DigitalRune.UndoIUndoableOperation
The operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionoperation is .
Remarks

This methods needs to be called for every IUndoableOperation before or after it is executed by calling its Do method. Note: Add(IUndoableOperation) does not execute the IUndoableOperation it will only record the operation.

After the operation is recorded in the undo buffer it can be undone and redone by calling Undo and Redo.

The recording of operations in the undo buffer can be temporarily disabled by setting AcceptChanges to .

See Also