TTMSFNCClipBoard Class
Cross-platform clipboard utility class that provides class methods for reading and writing text, rich text, HTML, bitmaps, and raw streams to and from the system clipboard.
API unit family: TMSFNCUtils
Syntax
TTMSFNCClipBoard = class
Methods
| Name | Description |
|---|---|
| AllocateCustomValue | Allocates a Windows clipboard memory block for a custom format value. |
| Clear | Removes all data from the clipboard. |
| GetBitmap | Reads a bitmap image from the clipboard. |
| GetBitmapWin | Reads a bitmap image from the clipboard using the Windows CF_DIB or CF_BITMAP format. |
| GetCustomValue | Reads a custom clipboard value using the specified Windows format identifier and raw data pointer. |
| GetFormat | Returns the platform-specific clipboard format identifier for the given abstract clipboard format. |
| GetHTML | Reads an HTML-formatted string from the clipboard. |
| GetRTF | Reads an RTF-formatted string from the clipboard. |
| GetRichTextStream | Reads rich text content from the clipboard as a memory stream. |
| GetStream | Reads binary stream data from the clipboard into a new memory stream. |
| GetText | Reads a plain Unicode text string from the clipboard. |
| GetValue | Reads a value from the clipboard using the specified Windows format identifier. |
| HasContent | Returns whether the clipboard contains any data. |
| HasFormat | Returns whether the clipboard currently contains data in the specified Windows clipboard format. |
| SetBitmap | Places a bitmap image onto the clipboard. |
| SetBitmapWin | Places a bitmap image onto the clipboard using the Windows CF_DIB or CF_BITMAP format. |
| SetCustomValue | Writes a custom value to the clipboard using the specified Windows format identifier. |
| SetHTML | Places an HTML-formatted string onto the clipboard. |
| SetRTF | Places an RTF-formatted string onto the clipboard. |
| SetRichTextStream | Places rich text content onto the clipboard as a memory stream. |
| SetStream | Places the contents of a memory stream onto the clipboard as binary data. |
| SetText | Places a plain Unicode text string onto the clipboard. |
| SetValue | Writes a single value to the clipboard using the specified Windows format identifier. |
| SetValues | Writes multiple values to the clipboard simultaneously using the specified format identifiers. |