Contents
- Index
- Previous
- Next
PasteFromClipboard method
Declaration
function PasteFromClipboard: Boolean;
Description
Pastes the contents of the Windows Clipboard at the insertion point or over the selection.
The method copies text from the Windows Clipboard to the current location. HTML text can be on the Clipboard in two forms. One form (CF_HTML) includes all HTML formatting instructions. The other (CF_TEXT) contains only the plain text, with all HTML tags removed. When you paste from the Clipboard into the control, the control attempts to paste the version of the text that includes HTML formatting.
Returns True on success. Returns False on failure, if there is no text on the Windows Clipboard, if the selection spans more than one cell in a table, or if a design-time control is selected.