MindFusion.Wpf Pack Programmer's Guide
Diagram.GetNearestNode Method
See Also
 





Returns the node nearest to the specified point.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public DiagramNode GetNearestNode (
    Point point,
    double maxDistance,
    DiagramNode ignored
)

Visual Basic  Copy Code

Public Function GetNearestNode( _
    point As Point, _
    maxDistance As Double, _
    ignored As DiagramNode _
) As DiagramNode

 Parameters

point

maxDistance
The maximum distance from the point at which to look for nodes.
ignored
A node that should be ignored.

 Return Value

The DiagramNode nearest to the specified point.

 Remarks

The last argument is useful when calling this method from NodeCreated and NodeModified handlers and the affected node should not be included in the search.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming.Wpf Namespace
GetNodeAt Method
GetNodesAt Method