Sign in Join
FPDoc Onlineexperiment

TClipboard.GetAsHtml function

Member of TClipboardpublicIn unit Clipbrd

Retrieves the HTML content of the clipboard (if available).

Declaration

pascal
function GetAsHtml(ExtractFragmentOnly: Boolean): string

Function result

The HTML content of the clipboard as a string. Empty string if the function fails.

Description

Retrieves the HTML content of the clipboard (if available). On Windows it will automatically remove the clipboard header that Windows inserts. The resulting HTML string will be UTF-8 encoded.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.