DiagramLite Programmer's Guide
BehaviorBase.CreateLink Method
See Also
 





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

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 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 link's origin node.
point
The link's start point.

 Return Value

An instance of DiagramLink or a derived class.

 Remarks

The default implementation returns a DiagramLink object. Override this method to create an instance of a custom class derived from DiagramLink when the user starts drawing a new link.

 See Also

BehaviorBase Members
BehaviorBase Class
MindFusion.Diagramming Namespace