TX Text Control .NET Server

SendMouseUp 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 up event.

Syntax

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

Parameters

ParameterDescription
viewLocation

Specifies the location, where the mouse up 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 Up in a focused User Input workflow.

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