Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Clipboard Methods

The Clipboard type exposes the following members.

  Name Description
Public method Static member Clear Removes all data from the Clipboard.
Public method Static member ContainsAudio Indicates whether there is data on the Clipboard in the WaveAudio format.
Public method Static member ContainsData Indicates whether there is data on the Clipboard that is in the specified format or can be converted to that format.
Public method Static member ContainsFileDropList Indicates whether there is data on the Clipboard that is in the FileDrop format or can be converted to that format.
Public method Static member ContainsImage Indicates whether there is data on the Clipboard that is in the Bitmap format or can be converted to that format.
Public method Static member ContainsText() Indicates whether there is data on the Clipboard in the Text or UnicodeText format, depending on the operating system.
Public method Static member ContainsText(TextDataFormat) Indicates whether there is text data on the Clipboard in the format indicated by the specified TextDataFormat value.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Static member GetAudioStream Retrieves an audio stream from the Clipboard.
Public method Static member GetData Retrieves data from the Clipboard in the specified format.
Public method Static member GetDataObject Retrieves the data that is currently on the system Clipboard.
Public method Static member GetFileDropList Retrieves a collection of file names from the Clipboard.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method Static member GetImage Retrieves an image from the Clipboard.
Public method Static member GetText() Retrieves text data from the Clipboard in the Text or UnicodeText format, depending on the operating system.
Public method Static member GetText(TextDataFormat) Retrieves text data from the Clipboard in the format indicated by the specified TextDataFormat value.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member SetAudio(Byte[]) Clears the Clipboard and then adds a Byte array in the WaveAudio format after converting it to a Stream.
Public method Static member SetAudio(Stream) Clears the Clipboard and then adds a Stream in the WaveAudio format.
Public method Static member SetData Clears the Clipboard and then adds data in the specified format.
Public method Static member SetDataObject(Object) Clears the Clipboard and then places nonpersistent data on it.
Public method Static member SetDataObject(Object, Boolean) Clears the Clipboard and then places data on it and specifies whether the data should remain after the application exits.
Public method Static member SetDataObject(Object, Boolean, Int32, Int32) Clears the Clipboard and then attempts to place data on it the specified number of times and with the specified delay between attempts, optionally leaving the data on the Clipboard after the application exits.
Public method Static member SetFileDropList Clears the Clipboard and then adds a collection of file names in the FileDrop format.
Public method Static member SetImage Clears the Clipboard and then adds an Image in the Bitmap format.
Public method Static member SetText(String) Clears the Clipboard and then adds text data in the Text or UnicodeText format, depending on the operating system.
Public method Static member SetText(String, TextDataFormat) Clears the Clipboard and then adds text data in the format indicated by the specified TextDataFormat value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.