Click or drag to resize

DropCanAcceptDataDelegate Delegate

Tests if a drop target can accept the data that are dragged.

Namespace: Altaxo.Gui
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public delegate DropCanAcceptDataReturnData DropCanAcceptDataDelegate(
	Object data,
	Object nonGuiTargetItem,
	DragDropRelativeInsertPosition insertPosition,
	bool isCtrlKeyPressed,
	bool isShiftKeyPressed
)

Parameters

data  Object
The data to accept.
nonGuiTargetItem  Object
Object that can identify the drop target, for instance a non gui tree node or a list node, or a tag of a gui item.
insertPosition  DragDropRelativeInsertPosition
The insert position. Applies for lists and trees only.
isCtrlKeyPressed  Boolean
If set to true, the control key is pressed.
isShiftKeyPressed  Boolean
If set to true, the shift key is pressed.

Return Value

DropCanAcceptDataReturnData
Data that indicate if the target can accept the data. In this case, at least one of CanCopy or CanMove have to be set to true.
See Also