Click or drag to resize

IDragData Interface

Version 109.1.110
Used to represent drag data.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 109.1.110.0 (109.1.110.0)
Syntax
public interface IDragData : IDisposable

The IDragData type exposes the following members.

Properties
  NameDescription
Public propertyFileName
Return the name of the file being dragged out of the browser window.
Public propertyFileNames
Retrieve the list of file names that are being dragged into the browser window
Public propertyFragmentBaseUrl
Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be empty.
Public propertyFragmentHtml
Return the text/html fragment that is being dragged.
Public propertyFragmentText
Return the plain text fragment that is being dragged.
Public propertyHasImage
Returns true if an image representation of drag data is available.
Public propertyImage
Get the image representation of drag data. May return NULL if no image representation is available.
Public propertyImageHotspot
Get the image hotspot (drag start location relative to image dimensions).
Public propertyIsDisposed
Gets a value indicating whether the object has been disposed of.
Public propertyIsFile
Returns true if the drag data is a file.
Public propertyIsFragment
Returns true if the drag data is a text or html fragment.
Public propertyIsLink
Returns true if the drag data is a link
Public propertyIsReadOnly
Returns true if this object is read-only.
Public propertyLinkMetaData
Return the metadata, if any, associated with the link being dragged.
Public propertyLinkTitle
Return the title associated with the link being dragged.
Public propertyLinkUrl
Return the link URL that is being dragged.
Top
Methods
  NameDescription
Public methodAddFile
Add a file that is being dragged into the webview.
Public methodClearFilenames
Clear list of filenames.
Public methodClone
Gets a copy of the current drag data
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetFileContents
Write the contents of the file being dragged out of the web view into the provided Stream For a suggested filename check the FileName property
Public methodResetFileContents
Reset the file contents. You should do this before calling CefBrowserHost::DragTargetDragEnter as the web view does not allow us to drag in this kind of data.
Top
See Also