The delegate method that is used by CreateEdgeInputMode to create edges between instances of IPort.

Namespace: yWorks.yFiles.UI.Input
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
[CanBeNullAttribute] public delegate IEdge PortBasedEdgeCreationCallback( IInputModeContext ctx, IGraph graph, IPort sourcePort, IPort targetPort, IEdgeStyle style )
Visual Basic
<CanBeNullAttribute> _ Public Delegate Function PortBasedEdgeCreationCallback ( _ ctx As IInputModeContext, _ graph As IGraph, _ sourcePort As IPort, _ targetPort As IPort, _ style As IEdgeStyle _ ) As IEdge

Parameters

ctx
Type: yWorks.Canvas.Input..::..IInputModeContext
The context of the input mode this action is used in.
graph
Type: yWorks.yFiles.UI.Model..::..IGraph
The graph to create the edge in.
sourcePort
Type: yWorks.yFiles.UI.Model..::..IPort
The source port.
targetPort
Type: yWorks.yFiles.UI.Model..::..IPort
The target port.
style
Type: yWorks.yFiles.UI.Drawing..::..IEdgeStyle
The style of the edge.

Return Value

The newly created edge or nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

The PortBasedEdgeCreator uses this type of callback to actually create edges between nodes.

See Also