New to Telerik UI for WinForms? Start a free 30-day trial

ISupportDrop

Interface

Exposes methods for drop targets

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public interface ISupportDrop

Properties

Determines whether the instance allows for drop operations.

C#
bool AllowDrop { get; }

Methods

Completes drag-drop operation of instance of the IDraggable over the specified target.

C#
void DragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters:dropLocationPoint

An instance of Point which represents a drop location.

dragObjectISupportDrag

An instance of the IDraggable which is dragged over the target.

Drop operations to occur in the drop target. Called when the cursor first enters the specified target.

C#
void DragEnter(Point currentMouseLocation, ISupportDrag dragObject)
Parameters:currentMouseLocationPoint

The current position of the mouse cursor

dragObjectISupportDrag

An instance of the IDraggable which is dragged over the target.

Special behavior when the drag operation leaves the specified target.

C#
void DragLeave(Point oldMouseLocation, ISupportDrag dragObject)
Parameters:oldMouseLocationPoint

The old position of the mouse cursor

dragObjectISupportDrag

An instance of the IDraggable which is dragged over the target.

Handles drag over operation when the cursor is moving over the drop target.

C#
bool DragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters:currentMouseLocationPoint

The current position of the mouse cursor

dragObjectISupportDrag

An instance of the IDraggable which is dragged over the specified target.

Returns:

bool

True if the operation finished successfully, otherwise false.