Northwoods.GoXam.Model Namespace > IDiagramModel Interface : AddCollectionCopy Method |
Function AddCollectionCopy( _ ByVal coll As IDataCollection, _ ByVal env As ICopyDictionary _ ) As ICopyDictionary
ICopyDictionary AddCollectionCopy( IDataCollection coll, ICopyDictionary env )
The primary purpose of this method is to perform a two-pass copy of a part of a diagram, and add the resulting data to this model.
Of course you can add node data without copying them by calling AddNode or by just adding them directly to the NodesSource.
Note that this method is universal, because it can only assume the collections are of type IDataCollection and ICopyDictionary. The corresponding methods in the generic model classes operate on and return a specific collection type.