MF
Meera Fathima
Syncfusion Team
May 31, 2007 11:59 AM UTC
Hello Ali,
Please find the below code snippet used in v5.1 to draw link between two nodes.
void CreateLink(MySymbol SourceNode , MySymbol TargetNode)
{
LineConnector line = new LineConnector(SourceNode.PinPoint, TargetNode.PinPoint);
line .LineBridgingEnabled = true;
line .LineRoutingEnabled = true;
this.diagram1.Model.AppendChild(line);
// Make connection between the two nodes and the line connector through its end point.
SourceNode.CentralPort.TryConnect(line.HeadEndPoint);
TargetNode.CentralPort.TryConnect(line.TailEndPoint);
}
Please let me know whether this is helpful to you.
Thanks for your interest in Syncfusion products.
Best Regards,
Meera.