Northwoods.GoWPF 2.2.4 Assembly
AddCollectionCopy Method (IDiagramModel)

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
Function AddCollectionCopy( _
   ByVal coll As IDataCollection, _
   ByVal env As ICopyDictionary _
) As ICopyDictionary
ICopyDictionary AddCollectionCopy( 
   IDataCollection coll,
   ICopyDictionary env
)

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.

Requirements
See Also

Reference

IDiagramModel Interface
IDiagramModel Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback