This is an UndoManager method that may be used to add any UndoUnit derived class object to the undo history.
The method has numerous overloads.
For all overloads except the AddChange(UndoUnit), the UndoUnit representing the change will automatically add itself back into the history (calling AddChange passing in itself). Therefore these delegates should not result in the same AddChange method being invoked.
These methods ultimately delegate the creation of the UndoUnit instance to the UndoUnitFactory of the UndoManager whose history will be updated. It is possible to change the UndoUnit instance that is used for these operations without needing to change the call to these methods.
This method adds an UndoUnit for collection change in the history.
There are several overloads that take a collection of type ICollection<T> and information about the type of change that occurred in the collection as parameters.