Class ClipboardEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The ClipboardEvent interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Elementcut, Elementcopy, and Elementpaste events.
[Value("ClipboardEvent")]
public class ClipboardEvent : Event
- Inheritance
-
ClipboardEvent
- Inherited Members
Remarks
-Copy-related events: Elementcopy, Elementcut, Elementpaste
-Clipboard API
-Image support for Async Clipboard article
Constructors
ClipboardEvent()
public ClipboardEvent()
ClipboardEvent(string, ClipboardEventInit)
The ClipboardEvent() constructor returns a new ClipboardEvent, representing an event providing information related to modification of the clipboard, that is Elementcut, Elementcopy, and Elementpaste events.
public ClipboardEvent(string type, ClipboardEventInit eventInitDict = null)
Parameters
typestringeventInitDictClipboardEventInit
Remarks
-Copy-related events: Elementcopy, Elementcut, Elementpaste
-The ClipboardEvent interface it belongs to.
-Clipboard API
Properties
ClipboardData
The clipboardData property of the ClipboardEvent interface holds a DataTransfer object, which can be used to:
[Value("clipboardData")]
public DataTransfer? ClipboardData { get; }
Property Value
- DataTransfer
A DataTransfer object.The property can be
nullwhen the event is created using the constructor. It is nevernullwhen dispatched by the browser.
Remarks
See the Elementcut, Elementcopy, and Elementpaste events documentation for more information.
-Copy-related events: Elementcopy, Elementcut, Elementpaste
-The ClipboardEvent interface it belongs to.
-Clipboard API