DragAndDrop Method

UFT One 2022 and later: Following the discontinuance of the Silverlight development framework, UFT One no longer supports the Silverlight Add-in by default.

If you need to use and extend the Silverlight Add-in, contact OpenText Support.

Simulates Mouse Drag and Drop operation.

Remarks

The location in mouse simulation methods is expressed in screen coordinates.

Syntax

Visual Basic (Declaration) 
Overridable Sub DragAndDrop( _
   ByVal DragX As Integer, _
   ByVal DragY As Integer, _
   ByVal DropX As Integer, _
   ByVal DropY As Integer, _
   ByVal Button As MOUSE_BUTTON _
) 
C# 
virtual void DragAndDrop( 
   int DragX,
   int DragY,
   int DropX,
   int DropY,
   MOUSE_BUTTON Button
)

Parameters

DragX
Start X location in pixels.
DragY
Start Y location in pixels.
DropX
Drop X location in pixels.
DropY
Drop Y location in pixels.
Button
A value of the MOUSE_BUTTON Enumeration.

See Also