Click or drag to resize

IRenderHandlerStartDragging Method

Version 130.1.90
Called when the user starts dragging content in the web view. Contextual information about the dragged content is supplied by dragData. OS APIs that run a system message loop may be used within the StartDragging call. Don't call any of the IBrowserHost.DragSource*Ended* methods after returning false. Return true to handle the drag operation. Call DragSourceEndedAt(Int32, Int32, DragOperationsMask) and DragSourceSystemDragEnded either synchronously or asynchronously to inform the web view that the drag operation has ended.

Namespace: CefSharp.OffScreen
Assembly: CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
bool StartDragging(
	IDragData dragData,
	DragOperationsMask mask,
	int x,
	int y
)

Parameters

dragData  IDragData
drag data
mask  DragOperationsMask
operation mask
x  Int32
combined x and y provide the drag start location in screen coordinates
y  Int32
combined x and y provide the drag start location in screen coordinates

Return Value

Boolean
Return false to abort the drag operation.
See Also