Game Development Reference
I object to doing things that computers can do.
Microsoft has always spearheaded the movement to constantly increase produc-
tivity using the Windows operating system. One productivity feature that has allowed
people to work smarter and faster is the Windows Clipboard. The Clipboard is a
temporary storage area that Windows uses to hold information that is being trans-
ferred between documents or applications. Most Windows applications support
cutting or copying data to the Clipboard and pasting data from the Clipboard.
The Windows Clipboard can store many types of data, including text, formatted
text, images, audio, and binary files. Even though any Clipboard data can be shared
by all Windows applications, it is important to note that supported data formats
vary between applications. Most applications know how to handle text, but not all
applications know how to handle other data formats.
The Clipboard can only hold one data item at a time. When the Clipboard receives
new data, the previous data is overwritten with the new contents. Contents can be
pasted numerous times, because the contents remain in the Clipboard until cleared,
overwritten by newer contents, or when Windows is shut down.
This chapter describes how to use the standard Windows Clipboard API from
within your .NET applications.