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

.NET Framework (current version)
 

Indicates whether the designer can accept data that the user drags onto it.

Namespace:   System.Activities.Presentation
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public static bool AllowDrop(
	IDataObject draggedDataObject,
	EditingContext context,
	params Type[] allowedItemTypes
)

Parameters

draggedDataObject
Type: System.Windows.IDataObject

The data object that is being dragged.

context
Type: System.Activities.Presentation.EditingContext

The EditingContext for the DragDropHelper.

allowedItemTypes
Type: System.Type[]

The types that are allowed to be dragged.

Return Value

Type: System.Boolean

true if drag-and-drop operations are allowed in the designer; otherwise, false.

.NET Framework
Available since 4.0
Return to top
Show: