GoXam for WPF v3
AddLinkForData(Object,Object,IDiagramModel) Method
Northwoods.GoXam Namespace > PartManager Class > AddLinkForData Method : AddLinkForData(Object,Object,IDiagramModel) Method
the data from which the link relationship comes
the data to which the link relationship goes
the model that the node data are in, not an Northwoods.GoXam.Model.ILinksModel
Make sure a Link exists for the link relationship between the given pair of node data, added to the LinkLayer specified by its LayerName.
Syntax

Parameters

fromnodedata
the data from which the link relationship comes
tonodedata
the data to which the link relationship goes
model
the model that the node data are in, not an Northwoods.GoXam.Model.ILinksModel

Return Value

the Link for the connecting the two node data, either an existing one or a newly created one, or null if FilterLinkForData(Object,Object,IDiagramModel) returns false or if the diagram is uninitialized
Remarks

If the diagram already has a Link for the pair of node data, as determined by FindLinkForData(Object,Object,IDiagramModel), or if FilterLinkForData(Object,Object,IDiagramModel) is false, this method will do nothing.

The implementation of this method should not modify the model.

See Also

Reference

PartManager Class
PartManager Members
Overload List