ToolStripItem.DoDragDrop(Object, DragDropEffects) Method
Definition
Begins a drag-and-drop operation.
public:
System::Windows::Forms::DragDropEffects DoDragDrop(System::Object ^ data, System::Windows::Forms::DragDropEffects allowedEffects);
public System.Windows.Forms.DragDropEffects DoDragDrop (object data, System.Windows.Forms.DragDropEffects allowedEffects);
member this.DoDragDrop : obj * System.Windows.Forms.DragDropEffects -> System.Windows.Forms.DragDropEffects
Public Function DoDragDrop (data As Object, allowedEffects As DragDropEffects) As DragDropEffects
Parameters
- data
- Object
The object to be dragged.
- allowedEffects
- DragDropEffects
The drag operations that can occur.
Returns
One of the 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 System.String, System.Drawing.Bitmap, or System.Drawing.Imaging.Metafile), an object that implements System.Runtime.Serialization.ISerializable, or an object that implements IDataObject.