clipboard ClipboardText property
Return to Introduction  Previous page  Next page
Applies to

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).  
tip Alternatively you can retrieve the plain text from clipboard using the GetString method. Here is an example:  
TextFromClipboard := GetString(CF_TEXT);  

iiinfo The plain text is standard clipboard format registered by 'TEXT' name, and have CF_TEXT format index.  

See also
Active, AvailableFormats, ClipboardBitmap and ClipboardFiles properties;  
HasFormat, Clear, GetString and PutString methods;  
OnChange event.