WebBrowserExtensions.SendMouseClickEvent Method |
Version 106.0.290
Send a mouse click event to the browser.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 106.0.290.0 (106.0.290.0)
Syntaxpublic static void SendMouseClickEvent(
this IBrowserHost host,
int x,
int y,
MouseButtonType mouseButtonType,
bool mouseUp,
int clickCount,
CefEventFlags modifiers
)
public:
[ExtensionAttribute]
static void SendMouseClickEvent(
IBrowserHost^ host,
int x,
int y,
MouseButtonType mouseButtonType,
bool mouseUp,
int clickCount,
CefEventFlags modifiers
)
Parameters
- host
- Type: CefSharp.IBrowserHost
browserHost. - x
- Type: System.Int32
The x coordinate relative to upper-left corner of view. - y
- Type: System.Int32
The y coordinate relative to upper-left corner of view. - mouseButtonType
- Type: CefSharp.MouseButtonType
Type of the mouse button. - mouseUp
- Type: System.Boolean
True to mouse up. - clickCount
- Type: System.Int32
Number of clicks. - modifiers
- Type: CefSharp.CefEventFlags
The modifiers.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBrowserHost. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also