DragItem.DropWidth

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aDragItem.DropWidth

Supported for all project types and targets.

Width of the object being dropped.

Sample Code

The following code displays the values of the DropWidth and DropHeight properties after the drag. The code is in the DropObject event.

If obj.PictureAvailable Then
Me.Image = obj.Picture
ElseIf obj.FolderItemAvailable Then
Me.Image = Picture.Open(obj.FolderItem)
End If
Label1.Value = Str(obj.DropWidth)
Label2.Value = Str(obj.DropHeight)