DataTransferItemList Class

The list of the items of a drag data store (https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitemlist-interface).

Implements

Properties

NameDescription
CountGets the number of items in the list (the .NET counterpart of length).
Lengthhttps://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-length

Gets the number of items in the list (the .NET counterpart of length).

public int Count { get; }

Property value

int

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-length

public uint Length { get; }

Indexers

NameDescription
this[uint]The indexed property getter (https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-item): the same object each time for an item.
this[int]

this[uint]

DataTransfer.cs

The indexed property getter (https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-item): the same object each time for an item.

public DataTransferItem? this[uint index] { get; }

Parameters

index int

Property value

DataTransferItem

No documentation is available.

Methods

NameDescription
Add(File)Adds a file item (https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-add).
Add(string, string)Adds a text item (https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-add).
Clear()https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-clear
GetEnumerator()Returns an enumerator that iterates through the collection.
Remove(uint)https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-remove
System.Collections.IEnumerable.GetEnumerator()

Add overloads

Adds a file item (https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-add).

public DataTransferItem? Add(File data)

Add(string, string)

DataTransfer.cs

Adds a text item (https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-add).

public DataTransferItem? Add(string data, string type)

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-clear

public void Clear()

GetEnumerator()

DataTransfer.cs

Returns an enumerator that iterates through the collection.

public IEnumerator<DataTransferItem> GetEnumerator()

Returns

IEnumerator<DataTransferItem> An enumerator that can be used to iterate through the collection.

Remove(uint)

DataTransfer.cs

https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransferitemlist-remove

public void Remove(uint index)

System.Collections.IEnumerable.GetEnumerator()

DataTransfer.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.