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

정의

끌어서 놓기 작업을 시작합니다.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

매개 변수

data
Object Object Object Object

끌 개체입니다.The object to be dragged.

allowedEffects
DragDropEffects DragDropEffects DragDropEffects DragDropEffects

발생할 수 있는 끌기 작업입니다.The drag operations that can occur.

반환

설명

끌기 작업을 다른 프로세스에서 애플리케이션과 상호 작용 해야 하는 경우는 data 매개 변수는 관리 되는 기본 클래스 여야 합니다 (같은 System.StringSystem.Drawing.Bitmap, 또는 System.Drawing.Imaging.Metafile)를 구현 하는 개체 System.Runtime.Serialization.ISerializable, 또는 개체 구현 하는 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.

적용 대상