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. Image for the cookie policy date

Hit Testing

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

3 Replies

AD Administrator Syncfusion Team August 11, 2005 07:09 AM

See if Model.GetChildrenContainedBy works for you.


AD Administrator Syncfusion Team August 11, 2005 02:55 PM

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.,


JF Jeff Fansler August 11, 2005 06:37 PM

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.,

Loader.
Live Chat Icon For mobile
Up arrow icon