Search
Diagram.GetNodeAt Method (PointF, Boolean, Boolean, Single)
See Also
 





Finds and returns the top-most node that lies within the specified threshold from the specified location, optionally excluding locked and/or selected nodes from the search.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public DiagramNode GetNodeAt (
    PointF point,
    bool excludeLocked,
    bool excludeSelected,
    float threshold
)

Visual Basic  Copy Code

Public Function GetNodeAt( _
    point As PointF, _
    excludeLocked As Boolean, _
    excludeSelected As Boolean, _
    threshold As Single _
) As DiagramNode

 Parameters

point
A PointF instance identifying a diagram location.
excludeLocked
true if nodes that are locked should be omitted by searching; otherwise, false.
excludeSelected
true if nodes that are selected should be omitted by searching; otherwise, false.
threshold

Allowed distance from the node.

 Return Value

The DiagramNode found or a null reference (Nothing in Visual Basic) if no node has been found.

 Remarks

This method gives you the possibility to specify search options when looking for a node occupying some location in the diagram document. The method searches starting from the top of z-order and returns the first object found.

 See Also