Enables a Microsoft UI Automation element to describe itself as an element that can be dragged as part of a drag-and-drop operation. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.Drag.
The IDragProvider interface has these types of members:
The IDragProvider interface has these methods. It also inherits methods from the Object class.
|GetGrabbedItems||Gets an array of UI Automation elements that are being dragged as part of this drag operation.|
The IDragProvider interface has these properties.
|Read-only||Gets a string that indicates what will happen when the item is dropped.|
|Read-only||Gets an array of strings that enumerates possible drop effects when this item is dropped.|
|Read-only||Gets a value indicating whether an item is currently being dragged.|
The Drag control pattern is used to support draggable controls, or controls with draggable items. For more info on what this pattern is for, see Drag Control Pattern.
IDragProvider is implemented by the existing Windows Runtime automation peers for a ListView item (ListViewItemAutomationPeer) or GridView item (GridViewItemAutomationPeer). This supports the Windows Runtime scenario of dragging list items so that they can be reordered. The peer for the host view of the items (ListViewAutomationPeer or GridViewAutomationPeer) support the IDropTargetProvider pattern.
Minimum supported client
Minimum supported server
|Windows Server 2012|