DataTransferItem Class

An item of a drag data store (https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitem-interface).

public sealed class DataTransferItem

Properties

NameDescription
Kindhttps://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-kind
Typehttps://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-type

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-kind

public string Kind { get; }

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-type

public string Type { get; }

Methods

NameDescription
GetAsFile()https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-getasfile
GetAsString(FunctionStringCallback?)https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-getasstring: the callback is invoked from a task.

GetAsFile()

DataTransfer.cs

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-getasfile

public File? GetAsFile()

GetAsString(FunctionStringCallback?)

DataTransfer.cs

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitem-getasstring: the callback is invoked from a task.

public void GetAsString(FunctionStringCallback? callback)