ASP.NET Pack Programmer's Guide
Diagram.GetItemAt Method
See Also
 





Finds and returns the top-most diagram item that lies at the specified location.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public DiagramItem GetItemAt (
    PointF pt,
    bool exclLocked
)

Visual Basic  Copy Code

Public Function GetItemAt( _
    pt As PointF, _
    exclLocked As Boolean _
) As DiagramItem

 Parameters

pt

A PointF instance identifying a diagram location.

exclLocked

Specifies whether to ignore locked items.

 Return Value

The DiagramItem found or null (Nothing in Visual Basic) if no item has been found.

 Remarks

Call the method to get the item at a certain location in the diagram. The method searches starting from the top of z-order and returns the first item found.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
GetNodeAt Method
GetLinkAt Method
LinkHitDistance Property