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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft