Finding a node in the diagram

I have several nodes in a diagram and one node is on top of another node. How do I get access to the top node when clicking on it? I tried the DiagramController method GetNodeAtPoint but that returned the bottom node. We are using version 9.3.0.61

Thanks in advance for your help.

Chris C


1 Reply

PM Pandi Murugan A Syncfusion Team October 24, 2011 11:11 AM UTC

Hi Chris,

Thanks for using Syncfusion products.

The below code meets your requirement.

[C#]
Node topNode = diagram1.Controller.GetNodesAtPoint(diagram1.Controller.ConvertToModelCoordinates(e.Location)).First;

Please try this and let me know if you have any concerns.

Regards,
Pandi Murugan A


Loader.
Up arrow icon