We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Selecing LineConnector

Thread ID:





60723 May 10,2007 10:52 AM Feb 11,2018 11:06 PM ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Phil Curtis
Asked On May 10, 2007 10:52 AM

I have created a simple diagram based on your InteractDiagram example.
I would like to be able to select a line connector and delete it.
I would also like to be able to change the node to which a line is connected.
Can you tell me how I can do this?

Meera Fathima [Syncfusion]
Replied On May 16, 2007 02:48 AM

Hi Phil Curtis,

Sorry about this delay in responding to your query.

Please refer the ScriptyClient sample which demonstrates how to add/delete nodes, draw links between two nodes that are in the selection list.

Following is the sample code snippet from the ScriptyClient sample for your reference :

// To delete the node.
protected void Remove_Click(object sender, System.EventArgs e)
if (this.DiagramWebControl1.View.SelectionList.Count > 0)
foreach (Node nodeTemp in DiagramWebControl1.View.SelectionList)

// To draw line connector between two nodes.

protected void Link_Click(object sender, System.EventArgs e)
if (this.DiagramWebControl1.View.SelectionList.Count == 2)
Node node1 = (Node)this.DiagramWebControl1.View.SelectionList[0];
Node node2 = (Node)this.DiagramWebControl1.View.SelectionList[1];

node1.EnableCentralPort = true;
node2.EnableCentralPort = true;

LineConnector lConn = new LineConnector(new PointF(1, 1), new PointF(2, 2));

EndPoint endPoint = null;

endPoint = lConn.TailEndPoint;

endPoint = lConn.HeadEndPoint;

I hope the above informations will help you. Please let me know if you have any more queries regarding this. We will be glad to assist you.

Thank you for using Syncfusion products.

Best Regards,

Replied On February 10, 2018 08:12 AM


Naganathan Ganesh Babu [Syncfusion]
Replied On February 11, 2018 11:06 PM

Hi Amir, 
Thanks for the update. 
Please let us know whether the issue has been resolved? 
Naganathan K G 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.