DragDropHelper<TOleServices, TDataFormat>
static class DragDropHelper<TOleServices, TDataFormat> where TOleServices : IOleServices where TDataFormat : IDataFormat<TDataFormat>
Helper class for drop targets to display the drag image while the cursor is over the target window and allows the
application to specify the drag image bitmap that will be displayed during a drag-and-drop operation.
Sets the drop object image and accompanying text back to the default.
Notifies the drag-image manager that the drop target has been entered, and provides it with the information
needed to display the drag image.
public static void DragEnter(HWND targetWindowHandle, IComVisibleDataObject dataObject, ref Point point, DROPEFFECT effect)
Notifies the drag-image manager that the drop target has been entered, and provides it with the information
needed to display the drag image.
Notifies the drag-image manager that the cursor has left the drop target.
Notifies the drag-image manager that the cursor position has changed
and provides it with the information needed to display the drag image.
Notifies the drag-image manager that the object has been dropped, and provides it with the information needed
to display the drag image.
Determines whether the data object is in a drag loop.
Determines whether the specified format is a drag loop format.
Releases formats used by the drag-and-drop helper.
Initializes the drag-image manager and sets the drag image bitmap into a data object.
public static void SetDragImage(IComVisibleDataObject dataObject, IBitmap dragImage, Point cursorOffset, bool usingDefaultDragImage)
Initializes the drag-image manager and sets the drag image bitmap into a data object.
Sets the drop description into a data object. Describes the image and accompanying text for a drop object.
public static void SetDropDescription(IComVisibleDataObject dataObject, DROPIMAGETYPE dropImageType, string message, string messageReplacementToken)
Sets the drop description into a data object. Describes the image and accompanying text for a drop object.
Sets the InDragLoop format into a data object.