NUnitForms Class Library

MouseController.Release Method (MouseButtons, PointF)

Simulate releasing the mouse button(s) at the specified PointF.

[Visual Basic]
Overloads Public Sub Release( _
   ByVal buttons As MouseButtons, _
   ByVal point As PointF _
)
[C#]
public void Release(
   MouseButtons buttons,
   PointF point
);

Parameters

buttons
A bitwise combination of the MouseButtons enumeration values.
point
A PointF, 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 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