ToolStripItem.DoDragDrop(Object, DragDropEffects) Método

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

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

allowedEffects
DragDropEffects

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

Devoluciones

Uno de los valores de DragDropEffects.One of the DragDropEffects values.

Comentarios

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