Finds and returns the top-most link that lies at the specified location, optionally excluding locked links from the search. The zero-based index of the exact link segment at the specified position is also returned.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public DiagramLink GetLinkAt ( |
Visual Basic Copy Code |
---|
Public Function GetLinkAt( _ |
A PointF specifying a diagram point in logical coordinates.
Specifies that locked links should be ignored by the search.
The DiagramLink found or a null reference (Nothing in Visual Basic) if no item has been found.
Call the method to get the link at a certain place in the document. The method searches starting from the top of z-order and returns the first link found. The specified point might not be laying exactly on the link, but within a certain threshold distance from it. This threshold is specified through the second parameter. Locked and invisible links can be skipped from the search by setting the third parameter to true. The link's segment closest to the point is returned through the fourth parameter.
NetDiagram Programmer's Guide | © 2023 MindFusion |