System.Windows.Forms.ToolStripItem.DoDragDrop Method

Begins a drag-and-drop operation.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public DragDropEffects DoDragDrop (object data, DragDropEffects allowedEffects)

Parameters

data
The object to be dragged.
allowedEffects
The drag operations that can occur.

Returns

One of the System.Windows.Forms.DragDropEffects values.

Remarks

If the drag operation needs to interact with applications in another process, the data parameter must either be a base managed class (such as string, System.Drawing.Bitmap, or System.Drawing.Imaging.Metafile), an object that implements System.Runtime.Serialization.ISerializable, or an object that implements System.Windows.Forms.IDataObject.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0