Search
BehaviorBase.CreateLink Method
See Also
 






Creates a link of the type appropriate for the current behavior.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

protected virtual DiagramLink CreateLink (
    DiagramNode origin,
    Point point
)

Visual Basic  Copy Code

Protected Overridable Function CreateLink( _
    origin As DiagramNode, _
    point As Point _
) As DiagramLink

 Parameters

origin

The origin DiagramNode of the new link.

point

The destination point of the new link.

 Return Value

An instance of the DiagramLink class.

 Remarks

Override this method to specify the type of DiagramLink, which is most appropriate for your diagram. The link is created every time the user connects two DiagramNode objects.

 See Also