Click or drag to resize
CfxDragData Class

[This is preliminary documentation and is subject to change.]

Structure used to represent drag data. The functions of this structure may be called on any thread.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxLibraryBase
        ChromiumCfxDragData

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxDragData : CfxLibraryBase

The CfxDragData type exposes the following members.

Properties
  NameDescription
Public propertyFileName
Return the name of the file being dragged out of 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 NULL. Set the base URL that the fragment came from.
Public propertyFragmentHtml
Return the text/html fragment that is being dragged. Set the text/html fragment that is being dragged.
Public propertyFragmentText
Return the plain text fragment that is being dragged. Set the plain text fragment that is being dragged.
Public propertyIsFile
Returns true (1) if the drag data is a file.
Public propertyIsFragment
Returns true (1) if the drag data is a text or html fragment.
Public propertyIsLink
Returns true (1) if the drag data is a link.
Public propertyIsReadOnly
Returns true (1) if this object is read-only.
Public propertyLinkMetadata
Return the metadata, if any, associated with the link being dragged. Set the metadata associated with the link being dragged.
Public propertyLinkTitle
Return the title associated with the link being dragged. Set the title associated with the link being dragged.
Public propertyLinkUrl
Return the link URL that is being dragged. Set the link URL that is being dragged.
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted library struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxLibraryBase.)
Top
Methods
  NameDescription
Public methodAddFile
Add a file that is being dragged into the webview.
Public methodClone
Returns a copy of the current object.
Public methodStatic memberCreate
Create a new CfxDragData object.
Public methodGetFileContents
Write the contents of the file being dragged out of the web view into |writer|. Returns the number of bytes sent to |writer|. If |writer| is NULL this function will return the size of the file contents in bytes. Call get_file_name() to get a suggested name for the file.
Public methodGetFileNames
Retrieve the list of file names that are being dragged into the browser window.
Public methodResetFileContents
Reset the file contents. You should do this before calling CfxBrowserHost.DragTargetDragEnter as the web view does not allow us to drag in this kind of data.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_drag_data_capi.h.
See Also