Share via


IDropHandler.HandleDragStarted Method

Indicates the start of a drag and drop operation.

Namespace:  Microsoft.VisualStudio.Text.Editor.DragDrop
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Function HandleDragStarted ( _
    dragDropInfo As DragDropInfo _
) As DragDropPointerEffects
DragDropPointerEffects HandleDragStarted(
    DragDropInfo dragDropInfo
)
DragDropPointerEffects HandleDragStarted(
    DragDropInfo^ dragDropInfo
)
abstract HandleDragStarted : 
        dragDropInfo:DragDropInfo -> DragDropPointerEffects
function HandleDragStarted(
    dragDropInfo : DragDropInfo
) : DragDropPointerEffects

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.DragDrop.DragDropPointerEffects
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 when a drop operation is in progress and the IDropHandler is the handler for the data format of the drop operation. It is not called for dropping the data formats that are not supported by this IDropHandler. A call to HandleDragStarted is always followed by a call to either HandleDragCanceled or HandleDataDropped.

.NET Framework Security

See Also

Reference

IDropHandler Interface

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace