[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TControl.OnEndDrag

Event handler signalled for the end of a drag-drop operation.

## Declaration

Source position: controls.pp line 1588

`protected property TControl.OnEndDrag : TEndDragEvent read FOnEndDrag write FOnEndDrag;`

## Description

OnEndDrag is a TEndDragEvent property with the event handler signalled when a drag-drop operation is ended. It occurs when the EndDrag method is called for the active drag object in the DragManager.

Use OnEndDrag to perform actions needed when a drag-drop operation is ended.

## See also

TControl.OnEndDock |  | Event handler signalled for the end of a drag-dock operation.
TEndDragEvent |  | The type of an OnEndDrag handler.
TDragObject.EndDrag |  | Called when a dragging operation ends.
TDragManager |  | The abstract base class used to manage dragging of controls (for drop or dock operations).
DragManager |  | The current DragManager (always TDragManagerDefault).