clipboard GetString method
Return to Introduction  Previous page  Next page
Applies to
acClipboard  

Declaration
function GetString(const FormatName: String): Stringoverload;  
function GetString(FormatIndex: Integer): Stringoverload;  

Description
The GetStream method retrieves the data from the clipboard to the Stream. The format name or format index must be specified in FormatName, or FormatIndex parameter.  

Example
TextFromClipboard := GetString(CF_TEXT);  

See also
Active, AvailableFormats, ClipboardBitmap, ClipboardFiles and ClipboardText properties;  
HasFormat, Clear, GetString, PutString, GetStream, PutStream, GetFormatIndex and GetFormatName methods;  
OnChange event.