共用方式為


DragDropHelper.GetDroppedObject 方法

定義

警告

This method does not support dropping multiple items. Use "public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)" instead.

擷取要在拖放作業中置放的物件。

public:
 static System::Object ^ GetDroppedObject(System::Windows::DependencyObject ^ dropTarget, System::Windows::DragEventArgs ^ e, System::Activities::Presentation::EditingContext ^ context);
public static object GetDroppedObject (System.Windows.DependencyObject dropTarget, System.Windows.DragEventArgs e, System.Activities.Presentation.EditingContext context);
[System.Obsolete("This method does not support dropping multiple items. Use "public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)" instead.")]
public static object GetDroppedObject (System.Windows.DependencyObject dropTarget, System.Windows.DragEventArgs e, System.Activities.Presentation.EditingContext context);
static member GetDroppedObject : System.Windows.DependencyObject * System.Windows.DragEventArgs * System.Activities.Presentation.EditingContext -> obj
[<System.Obsolete("This method does not support dropping multiple items. Use "public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)" instead.")>]
static member GetDroppedObject : System.Windows.DependencyObject * System.Windows.DragEventArgs * System.Activities.Presentation.EditingContext -> obj
Public Shared Function GetDroppedObject (dropTarget As DependencyObject, e As DragEventArgs, context As EditingContext) As Object

參數

dropTarget
DependencyObject

拖曳的位置。

e
DragEventArgs

拖曳事件資料。

context
EditingContext

編輯內容。

傳回

已刪除的物件。

屬性

適用於