IVsHierarchyDropDataSource Interface

Provides information about a dragged item in relation to its data source during a drag-and-drop operation within a hierarchy window. You can get an instance of this interface from the IVsHierarchy interface.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public interface IVsHierarchyDropDataSource

The IVsHierarchyDropDataSource type exposes the following members.

Public methodGetDropInfoReturns information about one or more of the items being dragged.
Public methodOnDropNotifyNotifies clients that the dragged item was dropped.

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. IVsHierarchyDropDataSource provides the information about the item being dragged. The IVsHierarchyDropDataTarget interface provides information about where the item is being dropped.

Notes to Implementers

Use this interface in your hierarchy implementation to include drag-and-drop behavior within and between hierarchies. Hierarchies in VSPackages are most commonly used to display projects.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft