Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
[InterfaceTypeAttribute(1)] [GuidAttribute("5AA5B118-B3D4-40C5-8739-231CE192850C")] public interface IVsHierarchyDropDataTarget
/** @attribute InterfaceTypeAttribute(1) */ /** @attribute GuidAttribute("5AA5B118-B3D4-40C5-8739-231CE192850C") */ public interface IVsHierarchyDropDataTarget
In every drag-and-drop operation within a hierarchy, information is required about the item that is being dragged and where it is being dropped. IVsHierarchyDropDataTarget provides the information about where the item is being dropped. Theinterface provides information about the item being dragged.
During the drag-and-drop operation, themethod is called when the hierarchy detects that the mouse has moved over a new hierarchy or a new hierarchy window. The hierarchy then calls the method as the mouse moves over the hierarchy or hierarchy window and the method if the mouse leaves the hierarchy or hierarchy window or if you cancel or complete the drag-and-drop operation. The hierarchy calls the Drop method when the drop finally occurs.
See illustrations of the implementation and/or calling of this interface in the sampleNotes to Implementers Hierarchies are implemented in VSPackages to display projects. Use this interface within your hierarchy implementation to include drag-and-drop behavior within and between hierarchies. .