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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Finding a node in the diagram

Thread ID:





101393 Oct 24,2011 02:41 AM UTC Oct 24,2011 11:11 AM UTC WinForms 1
Tags: Diagram
Christine Cipriani
Asked On October 24, 2011 02:41 AM UTC

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

Thanks in advance for your help.

Chris C

Pandi Murugan A [Syncfusion]
Replied On October 24, 2011 11:11 AM UTC

Hi Chris,

Thanks for using Syncfusion products.

The below code meets your requirement.

Node topNode = diagram1.Controller.GetNodesAtPoint(diagram1.Controller.ConvertToModelCoordinates(e.Location)).First;

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

Pandi Murugan A


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.

Please sign in to access our forum

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

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