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

Definition

Gibt an, ob der Designer 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

Die EditingContext für die DragDropHelper.

allowedItemTypes
Type[]

Die Typen, die gezogen werden dürfen.

Gibt zurück

truewenn Drag-and-Drop-Vorgänge im Designer zulässig sind; andernfalls . false

Gilt für: