The following tables list the members exposed by UndoTransaction.
Name | Description | |
---|---|---|
UndoTransaction Constructor | Initializes a new UndoTransaction |
Name | Description | |
---|---|---|
IsClosed | Returns a boolean indicating if the transaction has been closed/ended. | |
OpenTransaction | Returns the child transaction that is currently opened. | |
Parent | Returns the parent/containing UndoTransaction | |
Target | Overridden. Returns null since the UndoTransaction is a group of UndoUnit instances and may affect multiple targets | |
Units | Returns a read-only collection of the child units. |
Name | Description | |
---|---|---|
Description | Returns the description provided to the constructor of the transaction. | |
DetailedDescription | Returns the detailed description provided to the constructor of the transaction. |
Name | Description | |
---|---|---|
Commit | Commits and closes the transaction | |
GetDescription | Overridden. Returns a string representation of the action based on whether this is for an undo or redo operation. | |
Rollback | Closes the transaction, executes the Units and removes it from the parent. |
Name | Description | |
---|---|---|
CreateExecuteTransaction | Creates a transaction that will be started while executing the Units. | |
Execute | Overridden. Used to perform the associated action for all items in the Units | |
Merge | Overridden. Used to allow multiple consecutive undo units to be merged into a single operation. |