IDragProvider interface (uiautomationcore.h)

Enables a Microsoft UI Automation element to describe itself as an element that can be dragged as part of a drag-and-drop operation.


The IDragProvider interface inherits from the IUnknown interface. IDragProvider also has these types of members:


The IDragProvider interface has these methods.


Retrieves a localized string that indicates what happens when this element is dropped as part of a drag-drop operation.

Retrieves an array of localized strings that enumerate the full set of effects that can happen when this element is dropped as part of a drag-and-drop operation.

Indicates whether the element has been grabbed as part of a drag-and-drop operation.

Retrieves the collection of elements that are being dragged as part of a drag operation.


A provider can implement IDragProvider only on the element being dragged, or it can use an intermediary drag object that implements IDragProvider, in addition to the IDragProvider implementation on the individual element. The intermediary is responsible for firing all events, which enables the provider to support dragging multiple elements at once, and to describe the multi-element drag operation with a single set of drag properties and events.


Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)

See also


UI Automation Support for Drag-and-Drop