InputClient.DispatchDragEventAsync Method |
Version 92.0.260
Dispatches a drag event into the page.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 92.0.260.0 (92.0.260.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.Input.DispatchDragEventType
Type of the drag event. - x
- Type: System.Double
X coordinate of the event relative to the main frame's viewport in CSS pixels. - y
- Type: System.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
- Type: CefSharp.DevTools.Input.DragData
data - modifiers (Optional)
- Type: System.Nullable<Int32>
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0).
Return Value
Type:
Task<DevToolsMethodResponse>returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also