Hi Allen,
We suggest you to use Diagram’s “SentToBack()” method to send the nodes/connectors to last in the nodes collection while adding the connector in the model. Also please use Node’s EdgesEntering/EdgesLeaving properties to get the in/out edges (i.e. connectors) for the particular nodes.
Please refer to the below code example and sample.
Code example:
[C#]
private void ConnectNodes(Node parent, Node child)
{
OrgLineConnector line = new OrgLineConnector(Point.Empty, new Point(100, 100));
parent.CentralPort.TryConnect(line.TailEndPoint);
child.CentralPort.TryConnect(line.HeadEndPoint);
diagram1.Model.AppendChild(line);
//It will send to Back the last added/selection node into the Model.Nodes collection...
diagram1.SendToBack();
}
Sample:
Regards,
Naganathan K G