RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClipboard Class

TClipboard represents the system clipboard.

Pascal
[UIPermission(SecurityAction.LinkDemand, Clipboard=UIPermissionClipboard.AllClipboard)]
TClipboard = class(TPersistent);
C++
[UIPermission(SecurityAction.LinkDemand, Clipboard=UIPermissionClipboard.AllClipboard)]
class TClipboard : public TPersistent;

TClipboard is a wrapper for the system clipboard, which contains information that has been cut or copied from an application. 

Do not instantiate separate TClipboard objects by calling the constructor. Instead, use the global instance of TClipboard returned by the Clipboard function. This allows applications to share a single instance of TClipboard and safeguards against accidental deletion of the clipboard.  

Before calling Clipboard, your application must include the Clipbrd unit. That is, in Delphi, the uses clause must include Clipbrd and in C++ you must have an include statement for Clipbrd.hpp. 

TClipboard's properties provide information about the formats that the clipboard is registered to handle. 

TClipboard's methods 

store and retrieve data in appropriate formats. 

open and close the clipboard, maintaining a reference count. 

manage formats for objects in the clipboard. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!