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.

Finding a node in the diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

101393 Oct 23,2011 10:41 PM Oct 24,2011 07:11 AM Windows Forms 1
loading
Tags: Diagram
Christine Cipriani
Asked On October 23, 2011 10:41 PM

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 07:11 AM

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.

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.

;