DataTransferItemList

Overview

The DataTransferItemList object is a list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.

Location

Properties


length

 

property length: Int32 read;

 

Int32 length { get; }

 

var length: Int32 { get{} }

 

Int32 length { __get; }

 

ReadOnly Property length() As Int32

Required Methods


add

Adds an item (either a File object or a string) to the drag item list and returns a DataTransferItem object for the new item.

 

method add(pardata: dynamic; partype: dynamic): DataTransfer

 

DataTransfer add(dynamic pardata, dynamic partype)

 

func add(_ pardata: dynamic, _ partype: dynamic) -> DataTransfer

 

DataTransfer add(dynamic pardata, dynamic partype)

 

Function add(pardata As dynamic, partype As dynamic) As DataTransfer

Parameters:

  • pardata:
  • partype:

DataTransferItem

Getter that returns a DataTransferItem at the given index.

 

method DataTransferItem(parindex: dynamic): DataTransfer

 

DataTransfer DataTransferItem(dynamic parindex)

 

func DataTransferItem(_ parindex: dynamic) -> DataTransfer

 

DataTransfer DataTransferItem(dynamic parindex)

 

Function DataTransferItem(parindex As dynamic) As DataTransfer

Parameters:

  • parindex: