Clipboard Methods

The Clipboard type exposes the following members.

  NameDescription
Public method Static member Clear Clears any data from the system Clipboard.
Public method Static member ContainsAudio Queries the Clipboard for the presence of data in the WaveAudio data format.
Public method Static member ContainsData Queries the Clipboard for the presence of data in a specified data format.
Public method Static member ContainsFileDropList Queries the Clipboard for the presence of data in the FileDrop data format.
Public method Static member ContainsImage Queries the Clipboard for the presence of data in the Bitmap data format.
Public method Static member ContainsText Overloaded. Queries the Clipboard for the presence of data in a valid text data format.
Public method Static member GetAudioStream Returns a stream of Clipboard data in the WaveAudio data format.
Public method Static member GetData Retrieves data in a specified format from the Clipboard.
Public method Static member GetDataObject Returns a data object that represents the entire contents of the Clipboard.
Public method Static member GetFileDropList Returns a string collection that contains a list of dropped files available on the Clipboard.
Public method Static member GetImage Returns a BitmapSource object from the Clipboard that contains data in the Bitmap format.
Public method Static member GetText Overloaded. Returns a string containing the text data on the Clipboard.
Public method Static member IsCurrent Compares a specified data object to the contents of the Clipboard.
Public method Static member SetAudio Overloaded. Stores audio data (WaveAudio data format) on the Clipboard. The audio data can be a byte array or a stream.
Public method Static member SetData Stores the specified data on the Clipboard in the specified format.
Public method Static member SetDataObject Overloaded. Stores a specified data object on the system Clipboard.
Public method Static member SetFileDropList Stores FileDrop data on the Clipboard. The dropped file list is specified as a string collection.
Public method Static member SetImage Stores Bitmap data on the Clipboard. The image data is specified as a BitmapSource.
Public method Static member SetText Overloaded. Stores text data on the Clipboard. The text data to store is specified as a string.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft