GoXam for WPF v3
AddCollectionCopy Method (IDiagramModel)
Northwoods.GoXam.Model Namespace > IDiagramModel Interface : AddCollectionCopy Method
the collection of data to be copied
the ICopyDictionary used to keep track of copied objects; if null, the method will call CreateCopyDictionary, use it, and return it
Copy existing data and add to this model.
Syntax

Parameters

coll
the collection of data to be copied
env
the ICopyDictionary used to keep track of copied objects; if null, the method will call CreateCopyDictionary, use it, and return it

Return Value

the updated copy dictionary
Remarks

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.

See Also

Reference

IDiagramModel Interface
IDiagramModel Members