DropEventArgs
Namespace: Hex1b.Events
Assembly: Hex1b.dll
Event arguments for a drop event on a . Contains the drag data from the source, the source node, and the local drop position relative to the droppable target's bounds.
csharp
public sealed class DropEventArgs : WidgetEventArgs<DroppableWidget, DroppableNode>Inheritance
Object → WidgetEventArgs → WidgetEventArgs<DroppableWidget, DroppableNode> → DropEventArgs
Constructors
DropEventArgs(DroppableWidget, DroppableNode, InputBindingActionContext, object, DraggableNode, int, int)
Parameters:
widget(DroppableWidget):node(DroppableNode):context(InputBindingActionContext):dragData(Object):source(DraggableNode):localX(Int32):localY(Int32):
csharp
public DropEventArgs(DroppableWidget widget, DroppableNode node, InputBindingActionContext context, object dragData, DraggableNode source, int localX, int localY)Properties
DragData
The reference data supplied by the draggable source.
Returns: Object
csharp
public object DragData { get; }LocalX
The X position of the drop relative to the droppable target's bounds.
Returns: Int32
csharp
public int LocalX { get; }LocalY
The Y position of the drop relative to the droppable target's bounds.
Returns: Int32
csharp
public int LocalY { get; }Source
The draggable node that initiated the drag.
Returns: DraggableNode
csharp
public DraggableNode Source { get; }