.NET Framework Class Library
Clipboard Methods
The Clipboard type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
Clear | Clears any data from the system Clipboard. |
|
ContainsAudio | Queries the Clipboard for the presence of data in the WaveAudio data format. |
|
ContainsData | Queries the Clipboard for the presence of data in a specified data format. |
|
ContainsFileDropList | Queries the Clipboard for the presence of data in the FileDrop data format. |
|
ContainsImage | Queries the Clipboard for the presence of data in the Bitmap data format. |
|
ContainsText() | Queries the Clipboard for the presence of data in the UnicodeText format. |
|
ContainsText(TextDataFormat) | Queries the Clipboard for the presence of data in a text data format. |
|
GetAudioStream | Returns a stream of Clipboard data in the WaveAudio data format. |
|
GetData | Retrieves data in a specified format from the Clipboard. |
|
GetDataObject | Returns a data object that represents the entire contents of the Clipboard. |
|
GetFileDropList | Returns a string collection that contains a list of dropped files available on the Clipboard. |
|
GetImage | Returns a BitmapSource object from the Clipboard that contains data in the Bitmap format. |
|
GetText() | Returns a string containing the UnicodeText data on the Clipboard. |
|
GetText(TextDataFormat) | Returns a string containing text data on the Clipboard. |
|
IsCurrent | Compares a specified data object to the contents of the Clipboard. |
|
SetAudio(Byte[]) | Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a byte array. |
|
SetAudio(Stream) | Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a stream. |
|
SetData | Stores the specified data on the Clipboard in the specified format. |
|
SetDataObject(Object) | Places a specified non-persistent data object on the system Clipboard. |
|
SetDataObject(Object, Boolean) | Places a specified data object on the system Clipboard and accepts a Boolean parameter that indicates whether the data object should be left on the Clipboard when the application exits. |
|
SetFileDropList | Stores FileDrop data on the Clipboard. The dropped file list is specified as a string collection. |
|
SetImage | Stores Bitmap data on the Clipboard. The image data is specified as a BitmapSource. |
|
SetText(String) | Stores UnicodeText data on the Clipboard. |
|
SetText(String, TextDataFormat) | Stores text data on the Clipboard in a specified text data format. The UnicodeText data to store is specified as a string. |
See Also