Structure is used to represent drag data.
Structure is used to represent drag data.
Member | Type | Description |
---|---|---|
FileContents | Variant | The contents of the file being dragged out of the web view. |
FileName | String | Return the name of the file being dragged out of the browser window. |
FileNames | Variant | Retrieve the list of file names that are being dragged into the browser window. |
FragmentBaseURL | String | Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be empty. |
FragmentHtml | String | Return the text/html fragment that is being dragged. |
FragmentText | String | Return the plain text fragment that is being dragged. |
ImageHeight | Long | The image height. |
ImageHotspotX | Long | The image hotspot (drag start location relative to image dimensions). |
ImageHotspotY | Long | The image hotspot (drag start location relative to image dimensions). |
ImagePNGData | Variant | The image as PNG bytes. |
ImageWidth | Long | The image width. |
IsFile | Boolean | Returns true if the drag data is a file. |
IsFragment | Boolean | Returns true if the drag data is a text or html fragment. |
IsImage | Boolean | Returns true if an image representation of drag data is available. |
IsLink | Boolean | Returns true if the drag data is a link. |
IsReadOnly | Boolean | Returns true if this object is read-only. |
LinkMetadata | String | Return the metadata, if any, associated with the link being dragged. |
LinkTitle | String | Return the title associated with the link being dragged. |
LinkURL | String | Return the link URL that is being dragged. |
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.