RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClipboard Class

TClipboard represents the system clipboard.

Pascal
TClipboard = class(TPersistent);
C++
class TClipboard : public TPersistent;

Clipbrd

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. 

 

Clipboard 

Adding the Clipboard Object 

Cutting 

Selecting Text

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!