The delegate method that is used by CreateEdgeInputMode
to create edges between instances of INode.
Namespace: yWorks.yFiles.UI.InputAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
[CanBeNullAttribute] public delegate IEdge NodeBasedEdgeCreationCallback( IInputModeContext ctx, IGraph graph, INode sourceNode, INode targetNode, IEdgeStyle style ) |
| Visual Basic |
|---|
<CanBeNullAttribute> _ Public Delegate Function NodeBasedEdgeCreationCallback ( _ ctx As IInputModeContext, _ graph As IGraph, _ sourceNode As INode, _ targetNode As INode, _ 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.
- sourceNode
- Type: yWorks.yFiles.UI.Model..::..INode
The source node.
- targetNode
- Type: yWorks.yFiles.UI.Model..::..INode
The target node.
- 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 NodeBasedEdgeCreator
uses this type of callback to actually create edges between nodes.