共用方式為


DragDropHelper.AllowDrop(IDataObject, EditingContext, Type[]) 方法

定義

指出設計工具是否可接受使用者拖曳至其上的資料。

public:
 static bool AllowDrop(System::Windows::IDataObject ^ draggedDataObject, System::Activities::Presentation::EditingContext ^ context, ... cli::array <Type ^> ^ allowedItemTypes);
public static bool AllowDrop (System.Windows.IDataObject draggedDataObject, System.Activities.Presentation.EditingContext context, params Type[] allowedItemTypes);
static member AllowDrop : System.Windows.IDataObject * System.Activities.Presentation.EditingContext * Type[] -> bool
Public Shared Function AllowDrop (draggedDataObject As IDataObject, context As EditingContext, ParamArray allowedItemTypes As Type()) As Boolean

參數

draggedDataObject
IDataObject

要拖曳的資料物件。

context
EditingContext

EditingContextDragDropHelper

allowedItemTypes
Type[]

允許拖曳的型別。

傳回

如果設計工具內允許拖放作業,則為 true,否則為 false

適用於