ClipboardEvent Class

The copy, cut and paste events (https://w3c.github.io/clipboard-apis/#clipboard-event-interfaces). The events fired by the clipboard actions are trusted and composed, and their ClipboardEvent.ClipboardData is only associated with the clipboard while they are dispatched.

public sealed class ClipboardEvent : Event
Inheritance
Event ClipboardEvent

Constructors

NameDescription
ClipboardEvent(string, ClipboardEventInit?)Creates a clipboard event of the given type, initialized from the optional dictionary.

ClipboardEvent(string, ClipboardEventInit?)

ClipboardEvents.cs

Creates a clipboard event of the given type, initialized from the optional dictionary.

public ClipboardEvent(string type, ClipboardEventInit? eventInitDict = null)

Properties

NameDescription
ClipboardDatahttps://w3c.github.io/clipboard-apis/#dom-clipboardevent-clipboarddata

ClipboardData

ClipboardEvents.cs

https://w3c.github.io/clipboard-apis/#dom-clipboardevent-clipboarddata

public DataTransfer? ClipboardData { get; }