Share via


interface ICoreWebView2DragStartingEventArgs

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

interface ICoreWebView2DragStartingEventArgs
  : public IUnknown

Event args for the DragStarting event.

Summary

Members Descriptions
get_AllowedDropEffects The OLE DROPEFFECT values this drag data supports.
get_Data The data to be dragged.
get_Handled Gets the Handled property.
get_Position The position at which drag was detected given in WebView2 relative coordinates.
GetDeferral Returns an ICoreWebView2Deferral object.
put_Handled Indicates whether this event has been handled by the app.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.3712

Members

get_AllowedDropEffects

The OLE DROPEFFECT values this drag data supports.

public HRESULT get_AllowedDropEffects(DWORD * value)

get_Data

The data to be dragged.

public HRESULT get_Data(IDataObject ** value)

get_Handled

Gets the Handled property.

public HRESULT get_Handled(BOOL * value)

get_Position

The position at which drag was detected given in WebView2 relative coordinates.

public HRESULT get_Position(POINT * value)

GetDeferral

Returns an ICoreWebView2Deferral object.

public HRESULT GetDeferral(ICoreWebView2Deferral ** value)

Use this operation to complete the CoreWebView2DragStartingEventArgs.

Until the deferral is completed, subsequent attempts to initiate drag in the WebView2 will fail and if the cursor was changed as part of drag it will not restore.

put_Handled

Indicates whether this event has been handled by the app.

public HRESULT put_Handled(BOOL value)

If the app handles this event, WebView2 will not initiate drag drop. If the app does not handle the event, WebView2 will initiate its own drag drop logic.