Clipboard
Wisej.Web.Clipboard
Last updated
Wisej.Web.Clipboard
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Provides methods to place data on and retrieve data from the system Clipboard. This class cannot be inherited.
Removes all data from the Clipboard.
Indicates whether there is data on the Clipboard in the WaveAudio format.
Returns: Boolean. true if there is audio data on the Clipboard; otherwise, false.
Indicates whether there is data on the Clipboard that is in the specified format or can be converted to that format.
format
Returns: Boolean. true if there is data on the Clipboard that is in the specified format or can be converted to that format; otherwise, false.
Indicates whether there is data on the Clipboard that is in the FileDrop format or can be converted to that format.
Returns: Boolean. true if there is a file drop list on the Clipboard; otherwise, false.
Indicates whether there is data on the Clipboard that is in the Bitmap format or can be converted to that format.
Returns: Boolean. true if there is image data on the Clipboard; otherwise, false.
Indicates whether there is data on the Clipboard in the Text or UnicodeText format, depending on the operating system.
Returns: Boolean. true if there is text data on the Clipboard; otherwise, false.
Indicates whether there is text data on the Clipboard in the format indicated by the specified TextDataFormat value.
format
Returns: Boolean. true if there is text data on the Clipboard in the value specified for format ; otherwise, false.
Retrieves an audio stream from the Clipboard.
Returns: Stream. A Stream containing audio data or null if the Clipboard does not contain any data in the WaveAudio format.
Retrieves data from the Clipboard in the specified format.
format
Returns: Object. An Object 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.
Retrieves the data that is currently on the system Clipboard.
Returns: IDataObject. An IDataObject that represents the data currently on the Clipboard, or null if there is no data on the Clipboard.
Retrieves a collection of file names from the Clipboard.
Returns: StringCollection. A StringCollection containing file names or null if the Clipboard does not contain any data that is in the FileDrop format or can be converted to that format.
Retrieves an image from the Clipboard.
Returns: Image. An Image representing the Clipboard image data or null if the Clipboard does not contain any data that is in the Bitmap format or can be converted to that format.
Retrieves text data from the Clipboard in the Text or UnicodeText format, depending on the operating system.
Returns: String. The Clipboard text data or Empty if the Clipboard does not contain data in the Text or UnicodeText format, depending on the operating system.
Retrieves text data from the Clipboard in the format indicated by the specified TextDataFormat value.
format
Returns: String. The Clipboard text data or Empty if the Clipboard does not contain data in the specified format.
Saves the Byte array in the WaveAudio format after converting it to a Stream to the clipboard.
audioBytes
Throws:
ArgumentNullException audioBytes is null.
Saves the Stream in the WaveAudio format to the clipboard.
audioStream
Throws:
ArgumentNullException audioStream is null.
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();
text
The text to save to the client's temporary clipboard.
Throws:
ArgumentNullException text is null.
Saves the specified data to the clipboard in the specified format.
format
data
Throws:
ArgumentNullException data is null.
Saves the specified data to the clipboard.
data
The data to place on the Clipboard.
Throws:
ArgumentNullException The value of data is null.
Saves the collection of file names in the FileDrop format to the clipboard.
filePaths
Throws:
ArgumentNullException filePaths is null.
ArgumentException 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 InvalidPathChars, is null, contains a colon (:), or exceeds the system-defined maximum length. See the InnerException property of the ArgumentException for more information.
Saves the Image in the Bitmap format to the clipboard
image
Throws:
ArgumentNullException image is null.
Saves the text data in the UnicodeText format to the clipboard.
text
The text to add to the Clipboard.
Throws:
ArgumentNullException text is null or Empty.
Saves the text data in the format indicated by the specified TextDataFormat value to the clipboard.
text
The text to add to the Clipboard.
format
Throws:
ArgumentNullException text is null.
The format of the data to look for. See for predefined formats.
One of the values.
The format of the data to retrieve. See for predefined formats.
One of the values.
A array containing the audio data.
A containing the audio data.
The format of the data to set. See for predefined formats.
An representing the data to add.
A containing the file names.
The to add to the Clipboard.
One of the values.