Click or drag to resize

InputClientDispatchDragEventAsync Method

Version 91.1.160
Dispatches a drag event into the page.

Namespace:  CefSharp.DevTools.Input
Assembly:  CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax
public Task<DevToolsMethodResponse> DispatchDragEventAsync(
	string type,
	long x,
	long y,
	DragData data,
	Nullable<int> modifiers = null
)

Parameters

type
Type: SystemString
Type of the drag event.
x
Type: SystemInt64
X coordinate of the event relative to the main frame's viewport in CSS pixels.
y
Type: SystemInt64
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