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

Hit Testing

Thread ID:

Created:

Updated:

Platform:

Replies:

32974 Aug 10,2005 06:46 PM UTC Aug 11,2005 11:37 PM UTC Windows Forms 3
loading
Tags: Diagram
Jeff Fansler
Asked On August 10, 2005 06:46 PM UTC

Is it possible for me to find all the symbols within a diagram that intersect a given rectangle? I assume it would be similar to the select tool except I want to do it programaticaly and I don''t want the symbols to be selected, I just want a list of them. Thanks, -Jeff

Administrator [Syncfusion]
Replied On August 11, 2005 12:09 PM UTC

See if Model.GetChildrenContainedBy works for you.

Administrator [Syncfusion]
Replied On August 11, 2005 07:55 PM UTC

Jeff, The Diagram.Model.GetChildrenContainedBy method should do the trick. If you would rather deal in screen coordinates, you can also try the View.GetNodesContainedBy(...) or View.GetNodesIntersecting(...) methods. Regards, Prakash Surendra Syncfusion Inc.,

Jeff Fansler
Replied On August 11, 2005 11:37 PM UTC

Thanks Prakash, GetChildrenContainedBy worked. -Jeff >Jeff, > >The Diagram.Model.GetChildrenContainedBy method should do the trick. If you would rather deal in screen coordinates, you can also try the View.GetNodesContainedBy(...) or View.GetNodesIntersecting(...) methods. > >Regards, >Prakash Surendra >Syncfusion Inc.,

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

;