ClipboardText property
|
acClipboard
|
property ClipboardText: String;
|
The ClipboardText property used to retrieve or put the plain text to the clipboard.
|
|
You can read or modify the ClipboardText as usual string property (even at design-time) and the clipboard will imediately reflect all changes (also triggering OnChange event, if Active property is True).
|
|
Alternatively you can retrieve the plain text from clipboard using the GetString method. Here is an example:
|
TextFromClipboard := GetString(CF_TEXT);
|
The plain text is standard clipboard format registered by 'TEXT' name, and have CF_TEXT format index.
|
Active, AvailableFormats, ClipboardBitmap and ClipboardFiles properties;
|
HasFormat, Clear, GetString and PutString methods;
|
OnChange event.
|