Språk

DragDropHelper.AllowDrop(IDataObject, EditingContext, Type[]) Metod

Definition

Anger om designern kan acceptera data som användaren drar till den.

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

Parametrar

draggedDataObject
IDataObject

Det dataobjekt som dras.

context
EditingContext

För EditingContextDragDropHelper.

allowedItemTypes
Type[]

De typer som kan dras.

Returer

trueom dra och släpp-åtgärder tillåts i designern; annars . false

Gäller för