Click or drag to resize

InputClientDispatchDragEventAsync Method

Version 130.1.90
Dispatches a drag event into the page.

Namespace: CefSharp.DevTools.Input
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> DispatchDragEventAsync(
	DispatchDragEventType type,
	double x,
	double y,
	DragData data,
	int? modifiers = null
)

Parameters

type  DispatchDragEventType
Type of the drag event.
x  Double
X coordinate of the event relative to the main frame's viewport in CSS pixels.
y  Double
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  DragData
data
modifiers  NullableInt32  (Optional)
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0).

Return Value

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also