Mouse.StartDragging Method (UITestControl, Point)
Starts dragging the mouse from the specified point that is relative to the specified control or from an absolute control, if control is nulla null reference (Nothing in Visual Basic).
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Sub StartDragging ( _
control As UITestControl, _
relativeCoordinate As Point _
)
public static void StartDragging(
UITestControl control,
Point relativeCoordinate
)
public:
static void StartDragging(
UITestControl^ control,
Point relativeCoordinate
)
static member StartDragging :
control:UITestControl *
relativeCoordinate:Point -> unit
public static function StartDragging(
control : UITestControl,
relativeCoordinate : Point
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlUITestControl from which to start dragging.
relativeCoordinate
Type: PointCoordinates that are relative to the control to start dragging. If control is nulla null reference (Nothing in Visual Basic), the relativeCoordinate specifies an absolute coordinate.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.