SendMouseMove Method
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Informs the view generator about a mouse move event.
Syntax
public bool SendMouseMove(Point viewLocation, UserInput.MouseButtons button, UserInput.ModifierKeys modifierKeys);Public Function SendMouseMove(viewLocation As Point, button As UserInput.MouseButtons, modifierKeys As UserInput.ModifierKeys) As BooleanParameters
| Parameter | Description |
|---|---|
| viewLocation | Specifies the location, where the mouse move event occurs. The coordinates must be in pixels with an origin at the top-left corner of the view's location. |
| button | Specifies a pressed mouse button. It can be a value from the ServerVisualization.UserInput.MouseButtons enumeration. |
| modifierKeys | Specifies modifier keys. It can be a combination of the ServerVisualization.UserInput.ModifierKeys values. |
Return Value
If the event has been handled, the method returns true. Otherwise, it returns false.
Examples
The following example uses Send Mouse Move in a focused User Input workflow.
if (userInput.SendMouseMove(new System.Drawing.Point(20, 20), TXTextControl.ServerVisualisation.UserInput.MouseButtons.Left, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift))
{
Console.WriteLine("Send Mouse Move completed successfully.");
}If userInput.SendMouseMove(New System.Drawing.Point(20, 20), TXTextControl.ServerVisualisation.UserInput.MouseButtons.Left, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift) Then
Console.WriteLine("Send Mouse Move completed successfully.")
End If