NUnitForms Class Library

MouseController.Release Method (MouseButtons, Single, Single)

Simulate release the mouse button(s) at the specified x and y-coordinate.

[Visual Basic]
Overloads Public Sub Release( _
   ByVal buttons As MouseButtons, _
   ByVal x As Single, _
   ByVal y As Single _
)
[C#]
public void Release(
   MouseButtons buttons,
   float x,
   float y
);

Parameters

buttons
A bitwise combination of the MouseButtons enumeration values.
x
The Single x-coordinate, relative to the control under test, to move the mouse to.
y
The Single y-coordinate, relative to the control under test, to move the mouse to.

Remarks

Release positions the mouse over the control under test at the specified point (x, y) and then simulates releasing the specified buttons.

Exceptions

Exception TypeCondition
NotSupportedException When buttons contains MouseButtons.XButton1 or MouseButtons.XButton2 and the installed mouse does have 4 or 5 buttons, respectively.

See Also

MouseController Class | NUnit.Extensions.Forms Namespace | MouseController.Release Overload List