ToolStripItem.DoDragDrop(Object, DragDropEffects) ToolStripItem.DoDragDrop(Object, DragDropEffects) ToolStripItem.DoDragDrop(Object, DragDropEffects) ToolStripItem.DoDragDrop(Object, DragDropEffects) Method

Definizione

Inizia un'operazione di trascinamento e rilascio.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

Parametri

data
Object Object Object Object

Oggetto da trascinare.The object to be dragged.

allowedEffects
DragDropEffects DragDropEffects DragDropEffects DragDropEffects

Operazioni di trascinamento che possono essere eseguite.The drag operations that can occur.

Restituisce

Commenti

Se l'operazione di trascinamento deve interagire con le applicazioni in un altro processo, il data parametro deve essere una classe base gestita (ad esempio System.String, System.Drawing.Bitmap, o System.Drawing.Imaging.Metafile), un oggetto che implementa System.Runtime.Serialization.ISerializable, o un oggetto che implementa IDataObject.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.

Si applica a