Skip to main content
A newer version of this page is available. .

DragDropBehavior.Create(Type, Boolean, Boolean, Boolean, DragDropEvents) Method

Returns a new Drag-and-Drop Behavior. For internal use.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v19.2.dll

Declaration

[Browsable(false)]
public static DragDropBehavior Create(
    Type dragDropBehaviorSourceType,
    bool previewVisible = true,
    bool insertIndicatorVisible = true,
    bool allowDrop = true,
    DragDropEvents events = null
)

Parameters

Name Type Description
dragDropBehaviorSourceType Type

The Type of the control to which the Behavior is attached.

Optional Parameters

Name Type Default Description
previewVisible Boolean True

true to show a preview of dragged data elements; otherwise, false.

insertIndicatorVisible Boolean True

true to show where dragged data elements will be inserted; otherwise, false.

allowDrop Boolean True

true to allow users to drop data elements on the attached control; otherwise, false.

events DragDropEvents *null*

A DragDropEvents component that provides access to drag-and-drop events.

Returns

Type Description
DragDropBehavior

A DragDropBehavior object that specifies the Drag-and-Drop Behavior.

See Also