MindFusion.Wpf Pack Programmer's Guide
DiagramItem.HitTest Method
See Also
 





Returns the diagram item that contains the specified point.

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

 Syntax

C#  Copy Code

public virtual DiagramItem HitTest (
    Point point,
    double threshold,
    bool onlyNodes,
    bool onlyInteractive,
    bool includeHandles,
    bool includeLabels
)

Visual Basic  Copy Code

Public Overridable Function HitTest( _
    point As Point, _
    threshold As Double, _
    onlyNodes As Boolean, _
    onlyInteractive As Boolean, _
    includeHandles As Boolean, _
    includeLabels As Boolean _
) As DiagramItem

 Parameters

point

A Point value specifying the logical coordinates of a diagram point.

threshold

Specifies the size of the area around the item outlines where the point is still considered inside the item.

onlyNodes

true to exclude child links from the search.

onlyInteractive

true to exclude locked items from the search.

includeHandles

true to also consider adjustment handle locations (possibly outside of node's bounds).

includeLabels

true to also consider item label locations (possibly outside of item's bounds).

 Return Value

The item that contains the specified point.

 Remarks

This method performs recursive search if items contain child items.

 See Also

DiagramItem Members
DiagramItem Class
MindFusion.Diagramming.Wpf Namespace
ContainsPoint Method