A callback that is used by GraphEditorInputMode for the creation of nodes.

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

Syntax

C#
[CanBeNullAttribute] public delegate INode NodeCreationCallback( IInputModeContext context, IGraph graph, PointD location )
Visual Basic
<CanBeNullAttribute> _ Public Delegate Function NodeCreationCallback ( _ context As IInputModeContext, _ graph As IGraph, _ location As PointD _ ) As INode

Parameters

context
Type: yWorks.Canvas.Input..::..IInputModeContext
The context for which the node should be created.
graph
Type: yWorks.yFiles.UI.Model..::..IGraph
The graph to create the node for.
location
Type: yWorks.Canvas.Geometry.Structs..::..PointD
The location where the node shall be created.

Return Value

The created node or null.

Remarks

This callback can be used to conveniently provide a hook to the GraphEditorInputMode using its NodeCreator property.

See Also