Callback for creating a copy of the dragged item in graph at the specified location.

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

Syntax

C#
public delegate T DropCreationCallback<T>( IInputModeContext context, IGraph graph, IModelItem dropTarget, PointD dropLocation ) where T : class, IModelItem
Visual Basic
Public Delegate Function DropCreationCallback(Of T As {Class, IModelItem}) ( _ context As IInputModeContext, _ graph As IGraph, _ dropTarget As IModelItem, _ dropLocation As PointD _ ) As T

Parameters

context
Type: yWorks.Canvas.Input..::..IInputModeContext
The context for which the item should be created.
graph
Type: yWorks.yFiles.UI.Model..::..IGraph
The Graph in which to create the item.
dropTarget
Type: yWorks.Canvas.Model..::..IModelItem
The IModelItem on which the item is dropped.
dropLocation
Type: yWorks.Canvas.Geometry.Structs..::..PointD
The location the item should be created.

Type Parameters

T

Return Value

The item that has been created, or nullNothingnullptra null reference (Nothing in Visual Basic) if no item should be created.

See Also