NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RichControl.DoDragDrop

Begins a drag operation. The allowedEffects determine which drag operations can occur. If the drag operation needs to interop with applications in another process, data should either be a base managed class (String, Bitmap, or Metafile) or some Object that implements System.ComponentModel.IPersistable. data can also be any Object that implements System.WinForms.IDataObject.

[Visual Basic]
Public Function DoDragDrop( _
   ByVal data As Object, _
   ByVal allowedEffects As DragDropEffects _
) As DragDropEffects
[C#]
public DragDropEffects DoDragDrop(
   object data,
   DragDropEffects allowedEffects
);
[C++]
public: DragDropEffects DoDragDrop(
   Object* data,
   DragDropEffects allowedEffects
);
[JScript]
public function DoDragDrop(
   data : Object,
   allowedEffects : DragDropEffects
) : DragDropEffects;

Parameters

data
Data to drag.
allowedEffects
Mask specifying the allowed drag effects.

Return Value

final effect of the drag operation. Usually DragDropEffect.NONE, DragDropEffect.COPY, or DragDropEffect.MOVE.

See Also

RichControl Class | RichControl Members | System.WinForms Namespace