# Class TCefDragDataRef

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFDragData

## Declaration

`type TCefDragDataRef = class(TCefBaseRefCountedRef, ICefDragData)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefDragDataRef

## Overview

### Methods

| `function Clone: ICefDragData;`
| `function IsReadOnly: Boolean;`
| `function IsLink: Boolean;`
| `function IsFragment: Boolean;`
| `function IsFile: Boolean;`
| `function GetLinkUrl: ustring;`
| `function GetLinkTitle: ustring;`
| `function GetLinkMetadata: ustring;`
| `function GetFragmentText: ustring;`
| `function GetFragmentHtml: ustring;`
| `function GetFragmentBaseUrl: ustring;`
| `function GetFileName: ustring;`
| `function GetFileContents(const writer: ICefStreamWriter): NativeUInt;`
| `function GetFileNames(var names: TStrings): Integer;`
| `function GetFilePaths(var paths: TStrings): Integer;`
| `procedure SetLinkUrl(const url: ustring);`
| `procedure SetLinkTitle(const title: ustring);`
| `procedure SetLinkMetadata(const data: ustring);`
| `procedure SetFragmentText(const text: ustring);`
| `procedure SetFragmentHtml(const html: ustring);`
| `procedure SetFragmentBaseUrl(const baseUrl: ustring);`
| `procedure ResetFileContents;`
| `procedure AddFile(const path, displayName: ustring);`
| `procedure ClearFilenames;`
| `function GetImage: ICefImage;`
| `function GetImageHotspot: TCefPoint;`
| `function HasImage: boolean;`
| `class function UnWrap(data: Pointer): ICefDragData;`
| `class function New: ICefDragData;`

## Description

### Methods

| `function Clone: ICefDragData;`
This item has no description. Showing description inherited from ICefDragData.Clone. Returns a copy of the current object.

| `function IsReadOnly: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsReadOnly. Returns true (1) if this object is read-only.

| `function IsLink: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsLink. Returns true (1) if the drag data is a link.

| `function IsFragment: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsFragment. Returns true (1) if the drag data is a text or html fragment.

| `function IsFile: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsFile. Returns true (1) if the drag data is a file.

| `function GetLinkUrl: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetLinkUrl. Return the link URL that is being dragged.

| `function GetLinkTitle: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetLinkTitle. Return the title associated with the link being dragged.

| `function GetLinkMetadata: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetLinkMetadata. Return the metadata, if any, associated with the link being dragged.

| `function GetFragmentText: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFragmentText. Return the plain text fragment that is being dragged.

| `function GetFragmentHtml: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFragmentHtml. Return the text/html fragment that is being dragged.

| `function GetFragmentBaseUrl: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFragmentBaseUrl. Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be NULL.

| `function GetFileName: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFileName. Return the name of the file being dragged out of the browser window.

| `function GetFileContents(const writer: ICefStreamWriter): NativeUInt;`
This item has no description. Showing description inherited from ICefDragData.GetFileContents. 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.

| `function GetFileNames(var names: TStrings): Integer;`
This item has no description. Showing description inherited from ICefDragData.GetFileNames. Retrieve the list of file names that are being dragged into the browser window.

| `function GetFilePaths(var paths: TStrings): Integer;`
This item has no description. Showing description inherited from ICefDragData.GetFilePaths. Retrieve the list of file paths that are being dragged into the browser window.

| `procedure SetLinkUrl(const url: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetLinkUrl. Set the link URL that is being dragged.

| `procedure SetLinkTitle(const title: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetLinkTitle. Set the title associated with the link being dragged.

| `procedure SetLinkMetadata(const data: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetLinkMetadata. Set the metadata associated with the link being dragged.

| `procedure SetFragmentText(const text: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetFragmentText. Set the plain text fragment that is being dragged.

| `procedure SetFragmentHtml(const html: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetFragmentHtml. Set the text/html fragment that is being dragged.

| `procedure SetFragmentBaseUrl(const baseUrl: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetFragmentBaseUrl. Set the base URL that the fragment came from.

| `procedure ResetFileContents;`
This item has no description. Showing description inherited from ICefDragData.ResetFileContents. Reset the file contents. You should do this before calling ICefBrowserHost.DragTargetDragEnter as the web view does not allow us to drag in this kind of data.

| `procedure AddFile(const path, displayName: ustring);`
This item has no description. Showing description inherited from ICefDragData.AddFile. Add a file that is being dragged into the webview.

| `procedure ClearFilenames;`
This item has no description. Showing description inherited from ICefDragData.ClearFilenames. Clear list of filenames.

| `function GetImage: ICefImage;`
This item has no description. Showing description inherited from ICefDragData.GetImage. Get the image representation of drag data. May return NULL if no image representation is available.

| `function GetImageHotspot: TCefPoint;`
This item has no description. Showing description inherited from ICefDragData.GetImageHotspot. Get the image hotspot (drag start location relative to image dimensions).

| `function HasImage: boolean;`
This item has no description. Showing description inherited from ICefDragData.HasImage. Returns true (1) if an image representation of drag data is available.

| `class function UnWrap(data: Pointer): ICefDragData;`
This item has no description.

| `class function New: ICefDragData;`
This item has no description.

Generated by PasDoc 0.16.0-snapshot.