Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
FindDiagramItemsInRect not working as expected
posted

I'm trying to use the FindDiagramItemsInRect method to identify nodes that intersect connections to avoid a node from appearing on top (or overlaying) a connection while arranging the items in my custom layout.  I've tried adjusting the rect that I pass to that function, but, it never returns any results.

Here's how I am calling it: diagram.FindDiagramItemsInRect(Of DiagramConnection)(New Windows.Rect(xpos,ypos,width,height)

Does it only return items that are fully enclosed by the rect?  The documentation indicates that it includes intersections, but, that doesn't seem to be the case for me.

Any ideas?

Parents
No Data
Reply
  • 34510
    Offline posted

    It should be working as you would expect it to.  Which version of the XamDiagram are you using? 14.1 or 14.2?

    I have attached a sample using the 14.2 version and everything seems to be working.

    DiagramTesting_VB.zip
Children