TX Text Control .NET Server

SendMouseDoubleClick Method

Method|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Informs the view generator about a mouse double click event.

Syntax

public bool SendMouseDoubleClick(Point viewLocation, UserInput.MouseButtons button, UserInput.ModifierKeys modifierKeys);

Parameters

ParameterDescription
viewLocation

Specifies the location, where the mouse double click event occurs. The coordinates must be in pixels with an origin at the top-left corner of the view's location.

button

Specifies the 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 Double Click in a focused User Input workflow.

if (userInput.SendMouseDoubleClick(new System.Drawing.Point(20, 20), TXTextControl.ServerVisualisation.UserInput.MouseButtons.Left, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift))
{
    Console.WriteLine("Send Mouse Double Click completed successfully.");
}