InputClientDispatchDragEventAsync Method |
Version 111.2.70
Dispatches a drag event into the page.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 111.2.70.0 (111.2.70.0)
Syntax public Task<DevToolsMethodResponse> DispatchDragEventAsync(
DispatchDragEventType type,
double x,
double y,
DragData data,
int? modifiers = null
)
public:
Task<DevToolsMethodResponse^>^ DispatchDragEventAsync(
DispatchDragEventType type,
double x,
double y,
DragData^ data,
Nullable<int> modifiers = nullptr
)
Parameters
- type
- Type: CefSharp.DevTools.InputDispatchDragEventType
Type of the drag event. - x
- Type: SystemDouble
X coordinate of the event relative to the main frame's viewport in CSS pixels. - y
- Type: SystemDouble
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers tothe top of the viewport and Y increases as it proceeds towards the bottom of the viewport. - data
- Type: CefSharp.DevTools.InputDragData
data - modifiers (Optional)
- Type: SystemNullableInt32
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0).
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also