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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

To know which of the connectors are connected to the node

Platform: WinForms |
Control: Diagram |
Published Date: August 24, 2018 |
Last Revised Date: May 31, 2019

Edges Information

In our diagram control, we can use Node’s Edges/EdgesLeaving/EdgesEntering properties to know which of the connectors are connected to the current node.  

 

Properties

Descriptions

Edges

To get all the connectors to connected with the node

EdgesLeaving

To get all the connectors which are leaving from the nodes

EdgesEntering

to get all the connectors which are entering to the nodes

 

 

Please refer to the below code example. 

 

Code example: 

 

[C#] 

 

Ellipse ellipse = new Ellipse(20, 20, 100, 100); 
diagram1.Model.AppendChild(ellipse); 
 
//To get all the connectors to connected with the node... 
NodeCollection edges = ellipse.Edges as NodeCollection; 
 
//to get all the connectors which are entering to the nodes... 
NodeCollection edgesEntering = ellipse.EdgesEntering as NodeCollection; 
 
///To get all the connetors which are leaving from the nodes... 
NodeCollection edgesLeaving = ellipse.EdgesLeaving as NodeCollection; 
 

 

 

[VB]

Dim ellipse As New Ellipse(20, 20, 100, 100)
diagram1.Model.AppendChild(ellipse)
 
'To get all the connectors to connected with the node... 
Dim edges As NodeCollection = TryCast(ellipse.Edges, NodeCollection)
 
'to get all the connectors which are entering to the nodes... 
Dim edgesEntering As NodeCollection = TryCast(ellipse.EdgesEntering, NodeCollection)
 
'''To get all the connetors which are leaving from the nodes... 
Dim edgesLeaving As NodeCollection = TryCast(ellipse.EdgesLeaving, NodeCollection)
 

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile