Search
DiagramNode.GetClosestAnchorPoint Method
See Also
 





Returns the index of the anchor point that lies at the shortest distance from the specified point.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public int GetClosestAnchorPoint (
    Point point,
    bool incoming
)

Visual Basic  Copy Code

Public Function GetClosestAnchorPoint( _
    point As Point, _
    incoming As Boolean _
) As Integer

 Parameters

point

A Microsoft.Maui.Graphics.Point specifying a location in the diagram.

incoming

true to look for anchor points that allow incoming links; false to look for ones that allow outgoing links.

 Return Value

The index of the found point within the AnchorPattern definition.

 See Also