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

Definición

Inicia una operación de arrastrar y colocar.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

Parámetros

data
Object Object Object Object

El objeto que se va a arrastrar.The object to be dragged.

allowedEffects
DragDropEffects DragDropEffects DragDropEffects DragDropEffects

Las operaciones de arrastre que pueden producirse.The drag operations that can occur.

Devoluciones

Comentarios

Si necesita interactuar con aplicaciones en otro proceso, la operación de arrastrar el data parámetro debe ser una clase base administrada (como System.String, System.Drawing.Bitmap, o System.Drawing.Imaging.Metafile), un objeto que implementa System.Runtime.Serialization.ISerializable, o un objeto que 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.

Se aplica a