Click or drag to resize

InputClientDispatchDragEventAsync Method

Version 108.4.130
Dispatches a drag event into the page.

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

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: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also