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

Get connectors from nodes

Hello! Is there exist any way to get all connectrors that connected to the (NodeViewModel)node from this node?


3 Replies

KR Keerthivasan Ramamoorthy Syncfusion Team June 29, 2016 11:29 AM UTC

Hi Alex, 
 
Requirement: “Need to get all Connectors that connected to the (NodeViewModel)Node from this Node”.  
 
We have analyzed your requirement and achieve your requirement by using InConnectors and OutConnectors property of INodeInfo. We have provided a code example to represent your requirement. Please refer to the code example as below. 
 
Code example: 
int InCount; 
int OutCount; 
INodeInfo info= node.Info as INodeInfo; 
 
//Inconnectors 
InCount = info.InConnectors.Count(); 
//InOutconnectors 
OutCount = info.OutConnectors.Count(); 
Here, 
node is instance of NodeViewModel. 
 
 
Regards, 
Keerthivasan R. 



AL Alex June 29, 2016 07:43 PM UTC

Thanks! It is exactly what I was looking for!


KR Keerthivasan Ramamoorthy Syncfusion Team June 30, 2016 04:25 AM UTC

Hi Alex, 
 
Thanks for the update.  
Please let us know if you need any further assistance. 
 
Regards, 
Keerthivasan R. 


Loader.
Live Chat Icon For mobile
Up arrow icon