Mouse.StartDraggingImplementation Method
Starts dragging the mouse while holding down the specified mouse buttons and the specified keys from the specified point 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
Protected Overridable Sub StartDraggingImplementation ( _
control As UITestControl, _
button As MouseButtons, _
modifierKeys As ModifierKeys, _
relativeCoordinate As Point _
)
protected virtual void StartDraggingImplementation(
UITestControl control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
)
protected:
virtual void StartDraggingImplementation(
UITestControl^ control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
)
abstract StartDraggingImplementation :
control:UITestControl *
button:MouseButtons *
modifierKeys:ModifierKeys *
relativeCoordinate:Point -> unit
override StartDraggingImplementation :
control:UITestControl *
button:MouseButtons *
modifierKeys:ModifierKeys *
relativeCoordinate:Point -> unit
protected function StartDraggingImplementation(
control : UITestControl,
button : MouseButtons,
modifierKeys : ModifierKeys,
relativeCoordinate : Point
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlUITestControl from which to start dragging.
button
Type: MouseButtonsMouseButtons to be pressed while dragging.
modifierKeys
Type: ModifierKeysModifierKeys to be pressed while 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.