Method AddEdge
AddEdge(GraphDescriptor, PortDescriptor, PortDescriptor, SystemEdge)
Add an edge between two ports
Declaration
public static EdgeDescriptor AddEdge(GraphDescriptor desc, PortDescriptor fromPort, PortDescriptor toPort, SystemEdge edgeVisual = null)
Parameters
Type | Name | Description |
---|---|---|
GraphDescriptor | desc | The GraphDescriptor |
PortDescriptor | fromPort | The source port to connect |
PortDescriptor | toPort | The destination port to connect |
SystemEdge | edgeVisual | Edge visual element to assign to the new edge |
Returns
Type | Description |
---|---|
EdgeDescriptor | Returns a new EdgeDescriptor |