Table of Contents

Class Clipboard

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides methods to place data on and retrieve data from the system clipboard.

public static class Clipboard
Inheritance
Clipboard

Properties

Handler

Gets or sets IClipboardHandler used by the Clipboard.

Methods

Clear()

Removes all data from the Clipboard.

ContainsBitmap()

Gets a value indicating whether there is data on the Clipboard that is in the Bitmap format.

ContainsData(string)

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

ContainsFiles()

Gets a value indicating whether there is data on the Clipboard that is in the Files format.

ContainsText()

Gets a value indicating whether there is data on the Clipboard in the Text format.

ContainsText(TextDataFormat)

Gets a value indicating whether there is data on the Clipboard in the specified TextDataFormat text format.

GetBitmap()

Retrieves bitmap data from the Clipboard in the Bitmap format.

GetData(string)

Retrieves data from the Clipboard in the specified format.

GetDataObject()

Retrieves the data that is currently on the system Clipboard, or null if there is no data on the Clipboard.

GetFiles()

Retrieves an array of file names from the Clipboard in the Files format.

GetText()

Retrieves text data from the Clipboard in the Text format.

SetBitmap(Image)

Adds a bitmap to the data object in the Bitmap format.

SetData(string, object)

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

SetDataObject(IDataObject?)

Clears the Clipboard and then adds data to it.

SetDataObject(IDataObject?, bool)

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.

SetFiles(string[])

Adds an array of file names to the data object in the Files format.

SetText(string)

Adds a text string to the data object in the Text format.