System.Windows.Forms.Clipboard Members

The members of System.Windows.Forms.Clipboard are listed below.

See Also: Inherited members from System.Object

Public Methods

static
Clear()

Removes all data from the Clipboard.

static
ContainsAudio() : bool

Indicates whether there is data on the Clipboard in the DataFormats.WaveAudio format.

static
ContainsData(string) : bool

Indicates whether there is data on the Clipboard that is in the specified format or can be converted to that format.

static
ContainsFileDropList() : bool

Indicates whether there is data on the Clipboard that is in the DataFormats.FileDrop format or can be converted to that format.

static
ContainsImage() : bool

Indicates whether there is data on the Clipboard that is in the DataFormats.Bitmap format or can be converted to that format.

static
ContainsText() : bool

Indicates whether there is data on the Clipboard in the TextDataFormat.Text or TextDataFormat.UnicodeText format, depending on the operating system.

static
ContainsText(TextDataFormat) : bool

Indicates whether there is text data on the Clipboard in the format indicated by the specified System.Windows.Forms.TextDataFormat value.

static
GetAudioStream() : System.IO.Stream

Retrieves an audio stream from the Clipboard.

static
GetData(string) : object

Retrieves data from the Clipboard in the specified format.

static
GetDataObject() : IDataObject

Retrieves the data that is currently on the system Clipboard.

static
GetFileDropList() : System.Collections.Specialized.StringCollection

Retrieves a collection of file names from the Clipboard.

static
GetImage() : System.Drawing.Image

Retrieves an image from the Clipboard.

static
GetText() : string

Retrieves text data from the Clipboard in the TextDataFormat.Text or TextDataFormat.UnicodeText format, depending on the operating system.

static
GetText(TextDataFormat) : string

Retrieves text data from the Clipboard in the format indicated by the specified System.Windows.Forms.TextDataFormat value.

static
SetAudio(byte[])

Clears the Clipboard and then adds a byte array in the DataFormats.WaveAudio format after converting it to a System.IO.Stream.

static
SetAudio(System.IO.Stream)

Clears the Clipboard and then adds a System.IO.Stream in the DataFormats.WaveAudio format.

static
SetData(string, object)

Clears the Clipboard and then adds data in the specified format.

static
SetDataObject(object)

Clears the Clipboard and then places nonpersistent data on it.

static
SetDataObject(object, bool)

Clears the Clipboard and then places data on it and specifies whether the data should remain after the application exits.

static
SetDataObject(object, bool, int, int)

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.

static
SetFileDropList(System.Collections.Specialized.StringCollection)

Clears the Clipboard and then adds a collection of file names in the DataFormats.FileDrop format.

static
SetImage(System.Drawing.Image)

Clears the Clipboard and then adds an System.Drawing.Image in the DataFormats.Bitmap format.

static
SetText(string)

Clears the Clipboard and then adds text data in the TextDataFormat.Text or TextDataFormat.UnicodeText format, depending on the operating system.

static
SetText(string, TextDataFormat)

Clears the Clipboard and then adds text data in the format indicated by the specified System.Windows.Forms.TextDataFormat value.