All pages
Powered by GitBook
1 of 1

Loading...

Clipboard

Wisej.Web.Clipboard

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides methods to place data on and retrieve data from the system Clipboard. This class cannot be inherited.

public class Clipboard
Public Class Clipboard

Methods

Clear()

Removes all data from the Clipboard.

ContainsAudio()

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

Returns: . true if there is audio data on the Clipboard; otherwise, false.

ContainsData(format)

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

Parameter
Type
Description

Returns: . true if there is data on the Clipboard that is in the specified format or can be converted to that format; otherwise, false.

ContainsFileDropList()

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

Returns: . true if there is a file drop list on the Clipboard; otherwise, false.

ContainsImage()

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

Returns: . true if there is image data on the Clipboard; otherwise, false.

ContainsText()

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

Returns: . true if there is text data on the Clipboard; otherwise, false.

ContainsText(format)

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

Parameter
Type
Description

Returns: . true if there is text data on the Clipboard in the value specified for format ; otherwise, false.

GetAudioStream()

Retrieves an audio stream from the Clipboard.

Returns: . A containing audio data or null if the Clipboard does not contain any data in the format.

GetData(format)

Retrieves data from the Clipboard in the specified format.

Parameter
Type
Description

Returns: . An representing the Clipboard data or null if the Clipboard does not contain any data that is in the specified format or can be converted to that format.

GetDataObject()

Retrieves the data that is currently on the system Clipboard.

Returns: . An that represents the data currently on the Clipboard, or null if there is no data on the Clipboard.

GetFileDropList()

Retrieves a collection of file names from the Clipboard.

Returns: . A containing file names or null if the Clipboard does not contain any data that is in the format or can be converted to that format.

GetImage()

Retrieves an image from the Clipboard.

Returns: . An representing the Clipboard image data or null if the Clipboard does not contain any data that is in the format or can be converted to that format.

GetText()

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

Returns: . The Clipboard text data or if the Clipboard does not contain data in the or format, depending on the operating system.

GetText(format)

Retrieves text data from the Clipboard in the format indicated by the specified value.

Parameter
Type
Description

Returns: . The Clipboard text data or if the Clipboard does not contain data in the specified format.

SetAudio(audioBytes)

Saves the array in the format after converting it to a to the clipboard.

Parameter
Type
Description

Throws:

  • audioBytes is null.

SetAudio(audioStream)

Saves the in the format to the clipboard.

Parameter
Type
Description

Throws:

  • audioStream is null.

SetClientText(text)

Saves the text data to the client's temporary clipboard. Client side javascript code can copy the clipboard's content to the browser's clipboard calling Wisej.Core.copy();

Parameter
Type
Description

Throws:

  • text is null.

SetData(format, data)

Saves the specified data to the clipboard in the specified format.

Parameter
Type
Description

Throws:

  • data is null.

SetDataObject(data)

Saves the specified data to the clipboard.

Parameter
Type
Description

Throws:

  • The value of data is null.

SetFileDropList(filePaths)

Saves the collection of file names in the format to the clipboard.

Parameter
Type
Description

Throws:

  • filePaths is null.

  • filePaths does not contain any strings, or at least one of the strings in filePaths is empty, contains only white space, contains one or more invalid characters as defined by , is null, contains a colon (:), or exceeds the system-defined maximum length. See the property of the for more information.

SetImage(image)

Saves the in the format to the clipboard

Parameter
Type
Description

Throws:

  • image is null.

SetText(text)

Saves the text data in the format to the clipboard.

Parameter
Type
Description

Throws:

  • text is null or .

SetText(text, format)

Saves the text data in the format indicated by the specified value to the clipboard.

Parameter
Type
Description

Throws:

  • text is null.

format

String

The format of the data to look for. See DataFormats for predefined formats.

format

TextDataFormat

One of the TextDataFormat values.

format

String

The format of the data to retrieve. See DataFormats for predefined formats.

format

TextDataFormat

One of the TextDataFormat values.

audioBytes

Byte[]

A Byte array containing the audio data.

audioStream

Stream

A Stream containing the audio data.

text

String

The text to save to the client's temporary clipboard.

format

String

The format of the data to set. See DataFormats for predefined formats.

data

Object

An Object representing the data to add.

data

Object

The data to place on the Clipboard.

filePaths

StringCollection

A StringCollection containing the file names.

image

Image

The Image to add to the Clipboard.

text

String

The text to add to the Clipboard.

text

String

The text to add to the Clipboard.

format

TextDataFormat

One of the TextDataFormat values.

WaveAudio
Boolean
Boolean
FileDrop
Boolean
Bitmap
Boolean
Text
UnicodeText
Boolean
TextDataFormat
Boolean
Stream
Stream
WaveAudio
Object
Object
IDataObject
IDataObject
StringCollection
StringCollection
FileDrop
Image
Image
Bitmap
Text
UnicodeText
String
Empty
Text
UnicodeText
TextDataFormat
String
Empty
Byte
WaveAudio
Stream
ArgumentNullException
Stream
WaveAudio
ArgumentNullException
ArgumentNullException
ArgumentNullException
ArgumentNullException
FileDrop
ArgumentNullException
ArgumentException
InvalidPathChars
InnerException
ArgumentException
Image
Bitmap
ArgumentNullException
UnicodeText
ArgumentNullException
Empty
TextDataFormat
ArgumentNullException