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

Definition

Gibt an, ob der Gesigner Daten akzeptieren kann, die der Benutzer darauf zieht.

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

Parameter

draggedDataObject
IDataObject

Das Datenobjekt, das gezogen wird.

context
EditingContext

Der EditingContext für den DragDropHelper.

allowedItemTypes
Type[]

Die Typen, für die das Ziehen zulässig ist.

Gibt zurück

Der Wert lautet TRUE, wenn Drag & Drop-Vorgänge im Designer zulässig sind, andernfalls lauter er trueFALSEfalse.

Gilt für: