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.
Syncfusion Feedback

Finding a node in the diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

101393 Oct 24,2011 02:41 AM UTC Oct 24,2011 11:11 AM UTC Windows Forms 1
loading
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 9.3.0.61

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.

[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


CONFIRMATION

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.

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

;