Appends the changes between two versions of a container to the history.
Public Sub Append(
ByVal currentContainers() As AnnContainer,
ByVal updatedContainers() As AnnContainer
The current (old) containers containing the original objects.
The updated (new) containers with any changes.
Append will compare the objects in the current and modified containers and add a new item in Items for each annotation object that has been changed.
This method works as follows:
If a container is removed (is in currentContainer but not in updatedContainer), then an entry for all the AnnObject children of this container is added to Items with AnnHistoryItemState equals to
If a container is added (is in updatedContainer but not in currentContainer), then an entry for all the AnnObject children of this container is added to Items with AnnHistoryItemState equals to
Any object that is in updatedContainer but not in its equivalent container in currentContainer is considered a new object and an entry of type
Added is added to Items.
Any object that is in currentContainer but not in its equivalent container in updatedContainer is considered deleted and an entry of type
Deleted is added to Items.
For all objects that are in both currentContainer and its equivalent updatedContainer, the AnnObject.ModifiedMetadataKey values are compared and if not equal, an entry of type 'Modified' is added to Items.
Therefore, when this method returns, Items will be updated to add a list of all the annotation objects that have been changed between the two container sets.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries