Click or drag to resize
IDragData Interface
Version 51.0.0
Used to represent drag data.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.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 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 methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetFileContents
Gets the contents of the File as a 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