DragDropHelper.AllowDrop Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets a value indicating whether the designer can accept data that the user drags onto it.

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

Syntax

'Declaration
Public Shared Function AllowDrop ( _
    draggedDataObject As IDataObject, _
    allowedItemType As Type _
) As Boolean
'Usage
Dim draggedDataObject As IDataObject
Dim allowedItemType As Type
Dim returnValue As Boolean

returnValue = DragDropHelper.AllowDrop(draggedDataObject, _
    allowedItemType)
public static bool AllowDrop(
    IDataObject draggedDataObject,
    Type allowedItemType
)
public:
static bool AllowDrop(
    IDataObject^ draggedDataObject, 
    Type^ allowedItemType
)
public static function AllowDrop(
    draggedDataObject : IDataObject, 
    allowedItemType : Type
) : boolean
static member AllowDrop : 
        draggedDataObject:IDataObject * 
        allowedItemType:Type -> bool 

Parameters

  • allowedItemType
    Type: System.Type
    Contains the type that is allowed to be dragged.

Return Value

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

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

DragDropHelper Class

DragDropHelper Members

System.Activities.Design Namespace