ClientClipboard
The Clipboard extension provides the ability to respond to clipboard commands (cut, copy, and paste) as well as to asynchronously read from and write to the system clipboard.
Features
Write to the client's clipboard.
Read the client's clipboard contents.
Some features are not available in all browsers. Be sure to check the latest documentation on MSDN.
How to Use
The ClientClipboard extension can be added to a Wisej.NET project using NuGet Package Manager.
Clipboard Events
Handle when the user copies, cuts, or pastes content to or from the clipboard.
ClientClipboard.ClipboardChange += new ClientClipboardEventHandler(ClientClipboard_ClipboardChange)
Write to the Clipboard
Writes the specified text to the client clipboard.
await ClientClipboard.WriteTextAsync("Hello, World!");
Read from the Clipboard
Returns the textual content of the client clipboard.
var text = await ClientClipboard.ReadTextAsync();
Last updated
Was this helpful?