DragEvent Class

https://html.spec.whatwg.org/multipage/dnd.html#dragevent

public sealed class DragEvent : MouseEvent
Inheritance
MouseEvent DragEvent

Constructors

NameDescription
DragEvent(string, DragEventInit?)Creates a drag event of the given type with the given initialization dictionary.

DragEvent(string, DragEventInit?)

UIEvents.cs

Creates a drag event of the given type with the given initialization dictionary.

public DragEvent(string type, DragEventInit? eventInitDict = null)

Properties

NameDescription
DataTransferhttps://html.spec.whatwg.org/multipage/dnd.html#dom-dragevent-datatransfer

DataTransfer

UIEvents.cs

https://html.spec.whatwg.org/multipage/dnd.html#dom-dragevent-datatransfer

public DataTransfer? DataTransfer { get; }