Vcl.Controls.IsDragObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsDragObject(Sender: TObject): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsDragObject(System::TObject* Sender);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

Indicates whether a specified object is a TDragObject descendant.

Use IsDragObject to determine whether the object being dragged in a drag-and-drop or drag-and-dock operation is a specialized TDragObject that represents the dragged control's data rather then the control itself. Use IsDragObject on the Source parameter in an OnDragOver or OnDockOver event handler to determine the type of object being dragged and whether it should be accepted. Use IsDragObject on the Source parameter of an OnDragDrop or OnDockDrop event handler to determine how to interpret the dragged object's data.

See Also