Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IHTMLDataTransfer interface

Provides access to predefined clipboard formats for use in data transfer operations.

Members

The IHTMLDataTransfer interface inherits from the IDispatch interface. IHTMLDataTransfer also has these types of members:

Methods

The IHTMLDataTransfer interface has these methods.

MethodDescription
clearData

Removes one or more data formats from the clipboard through the dataTransfer object. For the clipboardData object, this method clears all formats.

getData

Gets the data in the specified format from the clipboard through the dataTransfer object or the clipboardData object.

setData

Assigns data in a specified format to the dataTransfer object or the clipboardData object.

 

Properties

The IHTMLDataTransfer interface has these properties.

PropertyDescription

dropEffect

Sets or gets the type of drag-and-drop operation and the type of cursor to display.

effectAllowed

Sets or gets which data transfer operations are allowed for the object on the source element.

 

Remarks

The IHTMLDataTransfer interface provides access to a data object. Get the IDataObject interface by calling QueryInterface for the IServiceProvider interface, and then calling IServiceProvider::QueryService with a service identifier of IID_IDataObject.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

 

 

Show:
© 2016 Microsoft