Export (0) Print
Expand All

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() Queries the Clipboard for the presence of data in the UnicodeText format.
Public method Static member ContainsText(TextDataFormat) Queries the Clipboard for the presence of data in a 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() Returns a string containing the UnicodeText data on the Clipboard.
Public method Static member GetText(TextDataFormat) Returns a string containing 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(Byte[]) Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a byte array.
Public method Static member SetAudio(Stream) Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a stream.
Public method Static member SetData Stores the specified data on the Clipboard in the specified format.
Public method Static member SetDataObject(Object) Places a specified non-persistent data object on the system Clipboard.
Public method Static member 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.
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(String) Stores UnicodeText data on the Clipboard.
Public method Static member 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.
Top

Community Additions

ADD
Show:
© 2014 Microsoft