The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
MFMeera 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.