Share via


IDropHandler.HandleDragStarted(DragDropInfo) Method

Definition

Indicates the start of a drag and drop operation.

public:
 Microsoft::VisualStudio::Text::Editor::DragDrop::DragDropPointerEffects HandleDragStarted(Microsoft::VisualStudio::Text::Editor::DragDrop::DragDropInfo ^ dragDropInfo);
Microsoft::VisualStudio::Text::Editor::DragDrop::DragDropPointerEffects HandleDragStarted(Microsoft::VisualStudio::Text::Editor::DragDrop::DragDropInfo const & dragDropInfo);
public Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropPointerEffects HandleDragStarted (Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo dragDropInfo);
abstract member HandleDragStarted : Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropInfo -> Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropPointerEffects
Public Function HandleDragStarted (dragDropInfo As DragDropInfo) As DragDropPointerEffects

Parameters

dragDropInfo
DragDropInfo

Information about the drag and drop operation in progress.

Returns

A DragDropPointerEffects object for the current operation. For example, this can be used to indicate a copy operation when the CTRL key is down.

Remarks

This method is called once a drop operation is in progress and the IDropHandler is the handler for the data format of the drop operation. It will not be called for dropping data formats not supported by this IDropHandler. A call to HandleDragStarted(DragDropInfo) is always followed by a call to either HandleDragCanceled() or HandleDataDropped(DragDropInfo).

Applies to