mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / DragDataObject UDT
In This Topic
    DragDataObject UDT
    In This Topic
    Description

    Structure is used to represent drag data.

    UDT Members
    MemberTypeDescription
    FileContentsVariant

    The contents of the file being dragged out of the web view.

    FileNameString

    Return the name of the file being dragged out of the browser window.

    FileNamesVariant

    Retrieve the list of file names that are being dragged into the browser window.

    FragmentBaseURLString

    Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be empty.

    FragmentHtmlString

    Return the text/html fragment that is being dragged.

    FragmentTextString

    Return the plain text fragment that is being dragged.

    ImageHeightLong

    The image height.

    ImageHotspotXLong

    The image hotspot (drag start location relative to image dimensions).

    ImageHotspotYLong

    The image hotspot (drag start location relative to image dimensions).

    ImagePNGDataVariant

    The image as PNG bytes.

    ImageWidthLong

    The image width.

    IsFileBoolean

    Returns true if the drag data is a file.

    IsFragmentBoolean

    Returns true if the drag data is a text or html fragment.

    IsImageBoolean

    Returns true if an image representation of drag data is available.

    IsLinkBoolean

    Returns true if the drag data is a link.

    IsReadOnlyBoolean

    Returns true if this object is read-only.

    LinkMetadataString

    Return the metadata, if any, associated with the link being dragged.

    LinkTitleString

    Return the title associated with the link being dragged.

    LinkURLString

    Return the link URL that is being dragged.

    Remarks

    In a web page, there are certain cases where a default drag behavior is used. These include text selections, images, and links. When an image or link is dragged, the URL of the image or link is set as the drag data, and a drag begins. For other elements, they must be part of a selection for a default drag to occur. To see this in effect, select an area of a webpage, and then click and hold the mouse and drag the selection. An OS-specific rendering of the selection will appear and follow the mouse pointer as the drag occurs. However, this behavior is only the default drag behavior, if no listeners adjust the data to be dragged.