Search
Diagram.GetNodeAt Method (Point, Boolean, Boolean)
See Also
 





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

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public DiagramNode GetNodeAt (
    Point point,
    bool excludeLocked,
    bool excludeSelected
)

Visual Basic  Copy Code

Public Function GetNodeAt( _
    point As Point, _
    excludeLocked As Boolean, _
    excludeSelected As Boolean _
) As DiagramNode

 Parameters

point
A Microsoft.Maui.Graphics.Point 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.

 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